User Tools

Site Tools


en:public:developer:template_system:tags:parameters:htmlencode

This is an old revision of the document!


Table of Contents

HtmlEncode

Parameter “HtmlEncode” specifies that the value of corresponding variable or result of function must be HTML-encoded. HTML encoding means converting the text to format accessible to browsers according to the HTML standards. Control characters will be converted to their HTML-analogues.

If you're interested you can read more in WikiPedia.

Values

Value Description
HtmlEncode=1 Means that value must be HTML-encoded. If something else if specified this parameter will be ignored.

Note

If the Result string that must be html Encoded contain some tags (like for exemple <#MyTag>), then theses tags will be first evaluated before to be HTML encoded, unless the Parameter analyzetagparams=0 is present

Example

<#BusinessActivity setValue="Health & beauty">
<#BusinessActivity HtmlEncode="1">

Output:

Health &amp; beauty
en/public/developer/template_system/tags/parameters/htmlencode.1358580260.txt.gz · Last modified: 2013/01/19 11:24 by admin