Class EscapeHtmlReference

java.lang.Object
org.apache.velocity.app.event.implement.EscapeReference
org.apache.velocity.app.event.implement.EscapeHtmlReference
All Implemented Interfaces:
EventHandler, ReferenceInsertionEventHandler, RuntimeServicesAware

public class EscapeHtmlReference extends EscapeReference
Escape all HTML entities.
Since:
1.5
Author:
wglass
See Also:
  • Constructor Details

    • EscapeHtmlReference

      public EscapeHtmlReference()
  • Method Details

    • escape

      protected String escape(Object text)
      Escape all HTML entities.
      Specified by:
      escape in class EscapeReference
      Parameters:
      text -
      Returns:
      An escaped String.
      See Also:
    • getMatchAttribute

      protected String getMatchAttribute()
      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.html.match"