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
Escape all HTML entities.
- Since:
- 1.5
- Author:
- wglass
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.velocity.app.event.ReferenceInsertionEventHandler
ReferenceInsertionEventHandler.referenceInsertExecutor -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.velocity.app.event.implement.EscapeReference
getRuntimeServices, referenceInsert, setRuntimeServices
-
Constructor Details
-
EscapeHtmlReference
public EscapeHtmlReference()
-
-
Method Details
-
escape
Escape all HTML entities.- Specified by:
escapein classEscapeReference- Parameters:
text-- Returns:
- An escaped String.
- See Also:
-
getMatchAttribute
Description copied from class:EscapeReferenceSpecify the configuration attribute that specifies the regular expression. Ideally should be in a formeventhandler.escape.XYZ.matchwhere
XYZis the type of escaping being done.- Specified by:
getMatchAttributein classEscapeReference- Returns:
- attribute "eventhandler.escape.html.match"
-