HTML Encode / Decode
Posted: Fri May 12, 2006 4:17 pm
I am inserting data from a textarea into a text field in a database. I need to allow for two things.
1. I need to allow special characters which is easy using addslashes.
2. I need to preserve html formatting. I am using overlib to display the data. If I enter:
The Dog Is
Brown
Then I would like it to display in overlib the same way. Is there a html encode / decode function that I could use?
Thanks!
1. I need to allow special characters which is easy using addslashes.
2. I need to preserve html formatting. I am using overlib to display the data. If I enter:
The Dog Is
Brown
Then I would like it to display in overlib the same way. Is there a html encode / decode function that I could use?
Thanks!