Background: I'm writing my own quick & dirty content management system.
I've got to the stage where I'm trying to get my edit aricle page working. The article is successfully stored in a MySQL database. To edit the article, I'm pre loading it into the form.
I want to be able to include all HTML tags in the article body - but consider this...
My article contains
<p class="body"> Test text</p>
the php gets the aarticle from the database so the output ends up being something like...
<input ... value="<p class="body"> Test text</p>">
Obviously this is messed up and results in a wierd looking form.
Surely other people have come up with a solution to this..... How's it done?