Class EscapeJavaScriptReference
java.lang.Object
org.apache.velocity.app.event.implement.EscapeReference
org.apache.velocity.app.event.implement.EscapeJavaScriptReference
- All Implemented Interfaces:
 EventHandler,ReferenceInsertionEventHandler,RuntimeServicesAware
Deprecated.
impractical use
Escapes the characters in a String to be suitable for use in JavaScript.
Warning: escaping references this way, without knowing if they land inside or outside Javascript simple-quoted or double-quoted strings, is not usable in production.
- Since:
 - 1.5
 - Author:
 - wglass
 - See Also:
 
- 
Field Summary
Fields inherited from class org.apache.velocity.app.event.implement.EscapeReference
log - 
Constructor Summary
Constructors - 
Method Summary
Methods inherited from class org.apache.velocity.app.event.implement.EscapeReference
getRuntimeServices, referenceInsert, setRuntimeServices 
- 
Constructor Details
- 
EscapeJavaScriptReference
public EscapeJavaScriptReference()Deprecated. 
 - 
 - 
Method Details
- 
escape
Deprecated.Escapes the characters in a String to be suitable for use in JavaScript.- Specified by:
 escapein classEscapeReference- Parameters:
 text-- Returns:
 - An escaped String.
 - See Also:
 
 - 
getMatchAttribute
Deprecated.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.javascript.match"
 
 
 -