in reply to Form Entry to HTML and Plain text
Would it work if you used a regex to turn any but a list of "safe" characters into escaped hexadecimals - the following, which I have cribbed from the otherwise annoying CGI Programming with Perl, may be what you want:
§ George Sherston
You could then translate them back at your leisure.$dirty_string =~ s/([^a-zA-Z0-9_.!~() -])/sprintf "%%%02X", ord($1)/ei +;
§ George Sherston
|
---|
In Section
Seekers of Perl Wisdom