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
-
-
Constructor Summary
Constructors Constructor Description JavaScriptStripper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
stripCommentsAndWhitespace(String original)
Removes javascript comments and whitespace from specified string.
-
-
-
Constructor Detail
-
JavaScriptStripper
public JavaScriptStripper()
-
-
Method Detail
-
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
-
-