org.apache.wicket.core.util.string
Class JavaScriptStripper
java.lang.Object
org.apache.wicket.core.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 String stripCommentsAndWhitespace(String original)
- Removes javascript comments and whitespace from specified string.
- Parameters:
original
- Source string
- Returns:
- String with removed comments and whitespace
Copyright © 2006–2015 Apache Software Foundation. All rights reserved.