public class XmlUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
encode(String value)
Escape <, > & ', " as their entities and
drop characters that are illegal in XML documents.
|
static boolean |
isReference(String ent)
Is the given argument a character or entity reference?
|
public static String encode(String value)
value
- the string to encode.public static boolean isReference(String ent)
ent
- the value to be checked.Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.