Okay, I have some web forms that some of my Dutch customers use. My problem is that they occasionally use high bit characters like ë ï é and í. When I redisplay those pages, the system craps out with control characters A<<x0.
So I think, "Aha! I'll use a module to escape those pesky characters into HTML". So I use HTML::Entities decode on my text field inputs.
My problem is that HTML::Entities also escapes HTML characters that I WANT my text entry people to be able to use. I want them to be able to use <p> and <br> to have some basic formatting control.
HTML::Entities allows you to force only some characters to be encoded and to leave others alone. But there's no easy way to complement that list. In other words, there's no function for 'export everything BUT <> in the incoming string'.
I'm hoping you might be able to save me from creating a whole manual lookup table :)