Re: Problem with HTML special characters
| From: | Jochem Maas | Date: | Fri, 29 Aug 2008 22:03:01 +0000 |
| Subject: | Re: Problem with HTML special characters | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-279034@lists.php.net to get a copy of this message | ||
Michelle Konzack schreef:
************************************************************************LIKE I CARE. hack your mail server / mail client / whatever if it bother's you so much. BTW it's the list that's being CC'ed* Do not Cc: me, because I READ THIS LIST, if I write here * * Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe *************************************************************************
Hello *, On my Website I have a NEWS section which I can edit On-Line over my Web-Interface but I have a problem with umlauts. I can enter the "ü" as "&uulm;" and it is saved as such and it works properly but, if I now want to re-edit the NEWS, it is schown as "ü" in the input field of the <TEXTAREA>. <grmpf> Is there a command/function which can convert a whole text that it is shown correctly with all "&...;" sequences?your going about it all wrong. you should enter "ü", "ü" should be in the database and if your output encoding requires it "ü" should be entized (including in the textarea) to "&uulm;" when you output the content. you can hack your way roung it by double entitizing so that "&uulm;" becomes "&uulm;" in the source (between <textarea> and </textarea> when the editor page is output. you'll probably have to use a nasty little regexp for that in order to avoid double entizing "&" into "&amp;" (hint: negative lookahead assertion)
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant