Jump to content

Edit History

pswork

pswork

I need to save HTML in database.

if (!Db::getInstance()->insert('table_name', [
	'content' => pSQL(htmlentities($value['content'])),
])) {
	return false;
}

Database result: <strong>Text</strong>

It is saved sentence.

And then I read from database and show HTML dynamically by JS.

A can't see js in result, but I see just HTML like text - <strong>Text</strong>

pswork

pswork

I need to save HTML in database.

if (!Db::getInstance()->insert('table_name', [
	'content' => pSQL(htmlentities($value['content'])),
])) {
return false;
}

Database result: &lt;strong&gt;Text&lt;/strong&gt;

It is saved sentence.

And then I read from database and show HTML dynamically by js.

A can't see js in result, but I see just HTML like text - <strong>Text</strong>

pswork

pswork

I need to save HTML in database.

if (!Db::getInstance()->insert('table_name', [
	'content' => pSQL(htmlentities($value['content'])),
])) {
	return false;
}

Database result: &lt;strong&gt;Text&lt;/strong&gt;

It is saved sentence.

And then I read from database and show HTML dynamically by js.

A can't see js in result, but I see just HTML like text - <strong>Text</strong>

pswork

pswork

I need to save HTML in database.

if (!Db::getInstance()->insert('table_name', [
	'content' => pSQL(htmlentities($value['content'])),
])) {
	return false;
}

Database result: &lt;strong&gt;wewefwefwef&lt;/strong&gt;

It is saved sentence.

And then I read from database and show HTML dynamically by js.

A can't see js in result, but I see just HTML like text - <strong>Text</strong>

pswork

pswork

I need to save HTML in database.

if (!Db::getInstance()->insert('table_name', [
	'content' => pSQL(htmlentities($value['content'])),
])) {
	return false;
}

Database result: &lt;strong&gt;wewefwefwef&lt;/strong&gt; 

It is saved sentence.

And then I read from database and show HTML dynamically by js.

A can't see js in result, but I see just HTML like text - <strong>Text</strong>

pswork

pswork

I need to save HTML in database.

if (!Db::getInstance()->insert('db_name', [
	'content' => pSQL(htmlentities($value['content'])),
])) {
	return false;
}

Database result: &lt;strong&gt;wewefwefwef&lt;/strong&gt; 

It is saved sentence.

And then I read from database and show HTML dynamically by js.

A can't see js in result, but I see just HTML like text - <strong>Text</strong>

pswork

pswork

I need to save HTML in database.

if (!Db::getInstance()->insert('db_name', [
	'content' => pSQL(htmlentities($value['content'])),
])) {
	return false;
}

Database result: &lt;strong&gt;wewefwefwef&lt;/strong&gt; 

It is saved sentence.

And then I read drom database and show HTML dynamically by js.

A can't see js in result, but I see just HTML like text - <strong>Text</strong>

×
×
  • Create New...