Anybody have, or know of, a way to convert characters into HTML entities in Perl? This is not URL escaping (%nn), but rather HTML escaping (&#nnn.
I want to echo user input out to the browser for display, but display it literally, avoiding "payload" code being executed in the user's browser as if it were from of my site.
Such a thing would be useful for stopping cross site scripting (XSS) in it's tracks.
Thanks,
petey
I want to echo user input out to the browser for display, but display it literally, avoiding "payload" code being executed in the user's browser as if it were from of my site.
Such a thing would be useful for stopping cross site scripting (XSS) in it's tracks.
Thanks,
petey