question: public static String encode ( String value ) { value = value . replace ( "&" , "&amp;" ) ; value = value . replace ( "<" , "&lt;" ) ; value = value . replace ( ">" , "&gt;" ) ; value = value . replace ( "\"" , "&quot;" ) ; value = value . replace ( "'" , "&#x27;" ) ; value = value . replace ( "/" , "&#x2F;" ) ; return value ; }
target:  HTML encodes value to avoid XSS attacks. & = &amp; < = &lt; > = &gt; " = &quot; ' = &#x27; / = &#x2F;