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>