org.apache.wicket.util.string
Class JavascriptStripper
java.lang.Object
org.apache.wicket.util.string.JavascriptStripper
public class JavascriptStripper
- extends Object
Strips comments and whitespace from javascript
- Author:
- Matej Knopp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavascriptStripper
public JavascriptStripper()
stripCommentsAndWhitespace
public static String stripCommentsAndWhitespace(String original)
- Removes javascript comments and whitespace from specified string.
- Parameters:
original
- Source string
- Returns:
- String with removed comments and whitespace
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.