====== JsEncode ====== Parameter "JsEncode" defines that the value of corresponding variable or result of function will be converted to the format accessible for Javascript-output. Managing characters for Javascript (like quotes, equal signs etc) will be escaped. **NOTE:** By default the resulting content will be parsed (all <#..> tags will be evaluated) before to apply this filter. You can control this behavior throught the parameter [[en:public:developer:template_system:tags:parameters:AnalyzeTagParams]] ==== Values ==== ^ Value ^ Description ^ | 1 | Means that value must be javascript-encoded. | | 0 | Means that value must be javascript-decoded. | ==== Example ==== <#JavascriptVar setValue="var test = '1';"> <#JavascriptVar JsEncode="1"> Output: var test = \u00271\u0027;