com.google.clearsilver.jsilver.functions.html
Class HtmlUrlValidateFunction
java.lang.Object
com.google.clearsilver.jsilver.functions.html.BaseUrlValidateFunction
com.google.clearsilver.jsilver.functions.html.HtmlUrlValidateFunction
- All Implemented Interfaces:
- TextFilter
public class HtmlUrlValidateFunction
- extends BaseUrlValidateFunction
Validates that a given string is a valid URI and return the HTML escaped string if it is.
Otherwise the string #
is returned.
- See Also:
BaseUrlValidateFunction
Constructor Summary |
HtmlUrlValidateFunction(boolean isUnquoted)
isUnquoted should be true if the URL appears in an unquoted attribute. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlUrlValidateFunction
public HtmlUrlValidateFunction(boolean isUnquoted)
- isUnquoted should be true if the URL appears in an unquoted attribute. like: <a href=<?cs
var: uri ?>>
applyEscaping
protected void applyEscaping(String in,
Appendable out)
throws IOException
- Description copied from class:
BaseUrlValidateFunction
- Called by
filter
after verifying that the input is a valid URI. Should apply any
appropriate escaping to the input string.
- Specified by:
applyEscaping
in class BaseUrlValidateFunction
- Throws:
IOException
Copyright © 2010-2012 Google. All Rights Reserved.