org.apache.myfaces.renderkit.html.util
public abstract class HTMLEncoder extends Object
Method Summary | |
---|---|
static String | encode(String string)
Variant of HTMLEncoder where encodeNewline is false and encodeNbsp is true. |
static String | encode(String string, boolean encodeNewline)
Variant of HTMLEncoder where encodeNbsp is true. |
static String | encode(String string, boolean encodeNewline, boolean encodeSubsequentBlanksToNbsp)
Encodes the given string, so that it can be used within a html page. |
Parameters: string the string to convert encodeNewline if true newline characters are converted to <br>'s encodeSubsequentBlanksToNbsp if true subsequent blanks are converted to 's