pswork Posted June 13, 2021 Share Posted June 13, 2021 (edited) 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> Edited June 13, 2021 by pswork (see edit history) Link to comment Share on other sites More sharing options...
lototo Posted June 14, 2021 Share Posted June 14, 2021 Please post your javascript code in part where you run the text Link to comment Share on other sites More sharing options...
SmartDataSoft Posted June 14, 2021 Share Posted June 14, 2021 @pswork You can use awesome pages with crazy elements which save html, js, css in the site.Crazy elements is free whey don't you use it. which is easy to manage and free Thank you Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now