![]() |
safely display html code- quilljs - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: safely display html code- quilljs (/showthread.php?tid=80229) |
safely display html code- quilljs - Secux - 10-03-2021 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']), 0 ,100) ?> RE: safely display html code- quilljs - InsiteFX - 10-04-2021 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. RE: safely display html code- quilljs - Secux - 10-04-2021 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 |