Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi monks,
I need to generate a document that can pass XHTML strict 1.0 from raw text.
Since those texts may contain &s, >, < those character that will get complain from the validator, I need to process them (escape), but I don't want to use very simple regexp to escape all & into & as it will kill any thing written in &xxx; and &#XXXXX;.
Should I use regular expression or a modulus to help me doing this?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTML escape char?
by pc88mxer (Vicar) on Mar 25, 2008 at 05:30 UTC | |
|
Re: HTML escape char?
by Your Mother (Archbishop) on Mar 25, 2008 at 06:46 UTC |