in reply to Re^4: Handling HTML special characters correctly
in thread Handling HTML special characters correctly

On a side note just noticed something annoying about HTML::Entities, if your input is already encoded, such as £, you'll get £,
well, how would you encode it? given an input like
If you write & in HTML, it turns out as &
The expected output of such a text after encoding would be:
If you write & in HTML, it turns out as &
Now you're saying, only the last ampersand should be escaped? Because the first one is already escaped? No, you never know if a text is already escaped.