![]() |
|
Perl Monk, Perl Meditation | |
PerlMonks |
Re^2: Converting HTML special entities to XMLby iburrell (Chaplain) |
on Sep 01, 2004 at 22:49 UTC ( #387737=note: print w/replies, xml ) | Need Help?? |
I think it is better to translate them to character references. The entities can't be represented accurately other than with Unicode. The HTML entity resolver would need to produce UTF-8 strings.
This assumes that the HTMl to XML process is converting escaped text to escaped text. If the text is being unescaped for other reasons, then the entities should be expanded to UTF-8 and escaped on output.
In Section
Seekers of Perl Wisdom
|
|