public class HtmlEncoder extends Object
| Constructor and Description |
|---|
HtmlEncoder() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(String s1)
Given a string containing entity escapes, returns a string containing the actual Unicode
characters corresponding to the escapes.
|
static String |
encode(String s1)
Turns funky characters into HTML entity equivalents
e.g.
|
public static String encode(String s1)
"bread" & "butter" = "bread" &
"butter". Update: supports nearly all HTML entities, including funky
accents. See the source code for more detail. Adapted from
http://www.purpletech.com/code/src/com/purpletech/util/Utils.java.s1 - Description of the Parameterpublic static String decode(String s1)
s1 - Description of the ParameterCopyright © 2006–2016 OWASP. All rights reserved.