Displaying posts written in

February 2009

Feb
4
2009

Encode/Decode HTML in Java

It is often necessary to escape the special html code from the user input in case of avoiding cross site attack (XSS).
Initially i thought jdk provides a method somewhere to do this like function htmlentities() in php, but i failed to find it. All i found is a class called “URLEncoder ” which i [...]