Functions:escape

From Dwoo Docs

Jump to: navigation, search

Applies various escaping schemes on the given string

escape([ $value = "", [ $format = 'html', [ $charset = null ]]]) 
  • value : the string to process
  • format : escaping format to use, valid formats are : html, htmlall, url, urlpathinfo, quotes, hex, hexentity, javascript and mail
  • charset : character set to use for the conversion (applies to some formats only), defaults to the current Dwoo charset




Example:

{"some <strong>html</strong> tags"|escape}

Output:

some &lt;strong&gt;html&lt;/strong&gt; tags
Personal tools
templates
page language

French

The article you want to access doesn't exist in French.
Deutsch
The article you want to access doesn't exist in Deutsch.
Russian
The article you want to access doesn't exist in Russian.