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.
| [reply] [d/l] |
thought it would have checked for encoded characters and skipped them?
That would be BAD! Decoding and encoding your post would change "such as £" to "such as £".
On a side note just noticed something annoying about HTML::Entities, if your input is already encoded
Duh?
The same thing happens if you try to encode characters twice.
The same thing happens if you try to encode URL characters twice.
The same thing happens if you try to zip a string twice.
etc
| [reply] |