Welcome Guest, Not a member yet? Register   Sign In
safely display html code- quilljs
#1

I use "quilljs" how to safely display html code entered via quilljs but at the same time to be protected by XSS 
output data from a database
PHP Code:
<?= substr(esc($experience['description']), ,100?>
Reply
#2

PHP code is not visiable to html code when viewed.

Hit F12 in your web browser for development tools and then right click on the page and view source.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

it is imported as html code and so it is saved in the database, when it selects it it produces html code but at the moment there is xss I don't know how to protect it
Reply




Theme © iAndrew 2016 - Forum software by © MyBB