utf8_encode and htmlentities equivalent
posted 8 years ago
I'm coming from a PHP background and there, to be secure, they recommend encoding all user input that will be printed out to screen to utf8 and then call htmlentities() to render things like brackets to that they will display correctly and not allow any scripts to be executed. Does JSP have an equivalent built in? If not, how would I do this in JSP?
Author and ninkuma