question: protected String toHTML ( String s ) { String result ; result = s ; result = result . replaceAll ( "&" , "&amp;" ) ; result = result . replaceAll ( "<" , "&lt;" ) ; result = result . replaceAll ( ">" , "&gt;" ) ; result = result . replaceAll ( "@" , "&#64;" ) ; result = result . replaceAll ( "\n" , "<br/>\n" ) ; return result ; }
target:  converts the given String into HTML, i.e., replacing some char entities with HTML entities.