public final class MarkupUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
escapeAttributeEntities(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 String |
escapeElementEntities(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 String escapeElementEntities(String str)
str
- String
input to escape.String
with escaped content.public static String escapeAttributeEntities(String str)
str
- String
input to escape.String
with escaped content.Copyright © 2010–2021 JATL. All rights reserved.