Class EscapeXmlReference

  • All Implemented Interfaces:
    EventHandler, ReferenceInsertionEventHandler, RuntimeServicesAware

    public class EscapeXmlReference
    extends EscapeReference
    Deprecated.
    impractical use

    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.

    Since:
    1.5
    Author:
    wglass
    See Also:
    StringEscapeUtils
    • Constructor Detail

      • EscapeXmlReference

        public EscapeXmlReference()
        Deprecated.
    • Method Detail

      • getMatchAttribute

        protected String getMatchAttribute()
        Deprecated.
        Description copied from class: EscapeReference
        Specify the configuration attribute that specifies the regular expression. Ideally should be in a form
        eventhandler.escape.XYZ.match

        where XYZ is the type of escaping being done.

        Specified by:
        getMatchAttribute in class EscapeReference
        Returns:
        attribute "eventhandler.escape.xml.match"