Package com.google.clearsilver.jsilver.functions.html

Examples of com.google.clearsilver.jsilver.functions.html.HtmlUrlValidateFunction


    // though they aren't in ClearSilver. This is so that auto escaping
    // can automatically add <?cs escape ?> nodes with these modes
    registerEscapeMode("html_unquoted", new HtmlEscapeFunction(true));
    registerEscapeMode("js_attr_unquoted", new JsEscapeFunction(true));
    registerEscapeMode("js_check_number", new JsValidateUnquotedLiteral());
    registerEscapeMode("url_validate_unquoted", new HtmlUrlValidateFunction(true));

    registerEscapeMode("css", new StyleEscapeFunction(false));
    registerEscapeMode("css_unquoted", new StyleEscapeFunction(true));

    // HTML functions.
    registerFunction("html_strip", new HtmlStripFunction());
    registerFunction("text_html", new TextHtmlFunction());

    // url_validate is available as an argument to <?cs escape: ?>
    // though it isn't in ClearSilver.
    registerFunction("url_validate", new HtmlUrlValidateFunction(false), true);
    registerEscapeMode("url_validate", new HtmlUrlValidateFunction(false));

    registerFunction("css_url_validate", new CssUrlValidateFunction(), true);
    // Register as an EscapingFunction so that autoescaping will be disabled
    // for the output of this function.
    registerFunction("null_escape", new NullEscapeFunction(), true);
View Full Code Here

TOP

Related Classes of com.google.clearsilver.jsilver.functions.html.HtmlUrlValidateFunction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.