You want to treat the contents of the database as text, so you need to consider it text. As such, you need to convert it to HTML by escaping anything HTML might find interesting (using encode_entities).
For example, the HTML for "Rock & Roll" is
The HTML for a textarea initialised to that string isRock & Roll
<textarea>Rock &amp; Roll</textarea>
In reply to Re: Textarea to edit HTML?
by ikegami
in thread Textarea to edit HTML?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |