Please register with your real name and do not post any SPAM! Violations: "Hk.", "Getagrip", "therain", "learnandwatch" and "lolox" => deleted
0 Members and 1 Guest are viewing this topic.
<TMPL_VAR NAME="USAGE_EXAMPLE_MARK" escape="none">
DEFAULT_ESCAPE - when using the template in an html-based application you should escape most of the string passed into the template using htmlspecialchars(). This option will allow you to specify a default escape type for all of your <tmpl_var>s. To overwrite this option, you can either use a different setting when instantiating vlibTemplate using the options array, or on per tag basis i.e. <tmpl_var name="varname" escape="url">. The following values are all possible escape values. NB: more escape attributes may be added in the future.HTML - html escapes a string. URL - url escapes a string. RAWURL - rawurl escapes a string. SQ - escapes single quotes in a string. DQ - escapes double quotes in a string. NONE - turns off escaping. 1 - alias for html escaping. 0 - alias for NONE. (1 and 0 are for compatibility with Perls HTML::Template). HEX - hex encodes a string. HEXENTITY - encodes a string to hex entities.