Re: textarea html generation problem
| From: | Stephen Wellington | Date: | Tue, 16 Sep 2008 06:35:32 +0000 |
| Subject: | Re: textarea html generation problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-280259@lists.php.net to get a copy of this message | ||
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@gmail.com> 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@gmail.com
steve@sjwwebdesign.co.uk
stephen.wellington@worc.ox.ac.uk