Re: [SOLVED] Re: escape special characters in HTML
Re: [SOLVED] Re: escape special characters in HTML
- Subject: Re: [SOLVED] Re: escape special characters in HTML
- From: Sherm Pendley <email@hidden>
- Date: Thu, 16 Nov 2006 10:25:19 -0500
On Nov 16, 2006, at 9:46 AM, Dominik Pich wrote:
Am Nov 16, 2006 um 3:30 PM schrieb Sherm Pendley:
On Nov 16, 2006, at 8:55 AM, Dominik Pich wrote:
Partly helped me.. still:
to not break the markup I use CFXMLCreateStringByEscapingEntities
That's *completely* unnecessary to correctly handle umlauts. There
are only five characters that must be escaped into entities in XML:
< -> <
> -> >
& -> &
' -> '
" -> "
The above must be escaped because they have special meaning to XML
itself.
I never said I wanted to handle ONLY umlauts - I wrote e.g. and
named two examples that came to mind.
Yes, but my point is that accent marks in general, or even entirely
different alphabets such as Cyrillic or Hebrew, do not need to be
escaped. The above five characters are all that must be escaped. For
the rest, all that's needed is to inform the user-agent what encoding
is being used.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden