org.springframework.web.util
Class JavaScriptUtils
java.lang.Object
   org.springframework.web.util.JavaScriptUtils
org.springframework.web.util.JavaScriptUtils
- public class JavaScriptUtils- extends Object
Utility class for JavaScript escaping.
 Escapes based on the JavaScript 1.5 recommendation.
 
Reference:
 
 http://devedge.netscape.com/library/manuals/2000/javascript/1.5/guide/ident.html
  (Table 2.1)
- Since:
- 1.1.1
- Author:
- Juergen Hoeller
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
JavaScriptUtils
public JavaScriptUtils()
javaScriptEscape
public static String javaScriptEscape(String input)
- Turn special characters into escaped characters conforming to JavaScript.
 Handles complete character set defined in HTML 4.01 recommendation.
 
- 
- Parameters:
- input- the input string
- Returns:
- the escaped string
 
Copyright (C) 2003-2004 The Spring Framework Project.