Re: textarea html generation problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just run the contents of the textarea through htmlentities - replacing
< and > with &lt; and &gt; 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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux