Is it possible to display HTML character codes stored in a text field in SQL to a textarea without rendering them as their appropriate character? i wasnt & to show up as & (the way it’s stored in the table). Or is their a way I should be storing the HTML so I won’t need to worry about this?
(site is using PHP)
In PHP you can use the function htmlspecialchars ( http://php.net/manual/en/function.htmlspecialchars.php ):
and it will render:
if you want decode them back you just use the function htmlspecialchars_decode