public class HtmlEncoder
extends java.lang.Object
null safe.
Invalid HTML chars are not checked with these methods, they are just
passed as they are.| Constructor and Description |
|---|
HtmlEncoder() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
attributeDoubleQuoted(java.lang.CharSequence value)
Encodes attribute value that will be double quoted.
|
static java.lang.String |
attributeSingleQuoted(java.lang.CharSequence value)
Encodes attribute value that will be single quoted.
|
static java.lang.String |
text(java.lang.CharSequence text)
Encodes a string to HTML-safe text.
|
static java.lang.String |
xml(java.lang.CharSequence text)
Encodes XML string.
|
public static java.lang.String attributeDoubleQuoted(java.lang.CharSequence value)
& with &" with "& public static java.lang.String attributeSingleQuoted(java.lang.CharSequence value)
& with &' with '& public static java.lang.String text(java.lang.CharSequence text)
& with &< with <> with > with public static java.lang.String xml(java.lang.CharSequence text)
Copyright © 2003-present Jodd Team