[Phpwm] HTML entities in a text area

Phil Beynon phil at infolinkelectronics.co.uk
Thu Sep 20 14:57:05 BST 2007

> I'm having problems with displaying HTML code in a text area.
> If the HTML code contains an entity (é) the textarea decided to
> render it so when the text area is submitted all the entities I
> had in there
> have been converted.
> Any idea how I can get around this. I suppose I could use
> htmlentities() on
> what I get out of the text area but this would be messing with the users
> HTML after they had approved it so I'm not keen on the idea.
> Any ideas appreciated.

The problem you haven't perhaps realised yet is if you use htmlentities that
when you go into edit that the ; on the end will get re-encoded as an

Use an <Iframe> which takes HTML and you can read and write to nicely under

No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.487 / Virus Database: 269.13.25/1018 - Release Date: 19/09/2007

More information about the Phpwm mailing list