How to properly log out an easy html code to a database to make it secure? I have lift and I am getting html code. If I use htmlspecialchars, I'll throw in & gt; e.t.c.
How to do it correctly and safely?
I would like to add that every user can insert articles.
Ok, I added: mysqli_real_escape_string + trim to remove unnecessary white characters. The html code is thrown into the database. This is ok? I added alert (1); and the code was done. How to prevent this?