The problem is that I need to encode HTML entities in a string, but in some cases parts of the string will already have had their HTML entities encoded.
--TWHIn reply to Perl & regex help by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |