Just run the contents of the textarea through htmlentities - replacing < and > with < and > might work but you should really swap out all of your entities Steve On Tue, Sep 16, 2008 at 2:08 AM, sean greenslade <zootboysean@xxxxxxxxx> wrote: > Hi all! I am trying to make a PHP HTML editor. I have made the entire editor > function, but it has a big problem. If the page contains a </textarea> tag, > it ends the editor's textarea and the browser starts rendering the HTML. How > do I go about preventing this from happening? > > Thanks a lot! > --Zootboy > -- Stephen Wellington 07956 042387 01865 280000 ext 12438 wellingtonsteve@xxxxxxxxx steve@xxxxxxxxxxxxxxxxxx stephen.wellington@xxxxxxxxxxxxx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php