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?
In reply to HTML escape char? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |