public class EscapeXmlReference extends EscapeReference
Escape all XML entities, suitable for placing the output inside an XML (1.0) text node or attribute value.
Warning: escaping references this way, without knowing if they land inside plain text, inside an attribute value or elsewhere, is not usable in production.
log
Constructor and Description |
---|
EscapeXmlReference()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected String |
escape(Object text)
Deprecated.
Escape all XML entities.
|
protected String |
getMatchAttribute()
Deprecated.
Specify the configuration attribute that specifies the
regular expression.
|
getRuntimeServices, referenceInsert, setRuntimeServices
protected String escape(Object text)
escape
in class EscapeReference
text
- protected String getMatchAttribute()
EscapeReference
eventhandler.escape.XYZ.match
where XYZ
is the type of escaping being done.
getMatchAttribute
in class EscapeReference
Copyright © 2000–2021 The Apache Software Foundation. All rights reserved.