// 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);