public final class MarkupUtils
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
private |
MarkupUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
escapeAttributeEntities(java.lang.String str)
This will take the pre-defined entities in XML 1.0 and convert their
character representation to the appropriate entity reference, suitable
for XML attributes.
|
static java.lang.String |
escapeElementEntities(java.lang.String str)
This will take the three pre-defined entities in XML 1.0 (used
specifically in XML elements) and convert their character representation
to the appropriate entity reference, suitable for XML element content.
|
public static java.lang.String escapeElementEntities(java.lang.String str)
str - String input to escape.String with escaped content.public static java.lang.String escapeAttributeEntities(java.lang.String str)
str - String input to escape.String with escaped content.