Welcome Guest, Not a member yet? Register   Sign In
Store HTML in database


In my web, users can write their custom HTML and I store it in MySQL database.

Which is the best way to store this HTML? 

CI4 escape this html by default? should i use htmlspecialchars, addslashses, etc or something like that? base64 encode maybe? or it is not necessary?

Thank you.

Messages In This Thread
Store HTML in database - by AngelRodriguez - 10-05-2020, 03:06 PM
RE: Store HTML in database - by hobbyci - 10-07-2020, 11:51 AM

Theme © iAndrew 2016 - Forum software by © MyBB