Package org.springframework.web.util
Class JavaScriptUtils
java.lang.Object
org.springframework.web.util.JavaScriptUtils
Utility class for JavaScript escaping.
 Escapes based on the JavaScript 1.5 recommendation.
 
Reference: JavaScript Guide on Mozilla Developer Network.
- Since:
- 1.1.1
- Author:
- Juergen Hoeller, Rob Harrop, Rossen Stoyanchev
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic StringjavaScriptEscape(String input) Turn JavaScript special characters into escaped characters.
- 
Constructor Details- 
JavaScriptUtilspublic JavaScriptUtils()
 
- 
- 
Method Details- 
javaScriptEscapeTurn JavaScript special characters into escaped characters.- Parameters:
- input- the input string
- Returns:
- the string with escaped characters
 
 
-