Mustache.js: maybe strict escaping problem, forward slash turned into unicode entity

Created on 29 Mar 2013  ·  2Comments  ·  Source: janl/mustache.js

As per the subject, I am passing in uri, and the forward slashes come out as the entity #x2f;

IF it is strict escaping, is there a way to turn that off?

Most helpful comment

From the readme:

All variables are HTML-escaped by default. If you want to render unescaped HTML, use the triple mustache: {{{name}}}. You can also use & to unescape a variable.

All 2 comments

From the readme:

All variables are HTML-escaped by default. If you want to render unescaped HTML, use the triple mustache: {{{name}}}. You can also use & to unescape a variable.

@bryanrasmussen As a side note, you can always specify the behavior that Mustache uses to escape things by overriding Mustache.escape. See this issue for further discussion.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mbrodala picture mbrodala  ·  16Comments

chlab picture chlab  ·  11Comments

amper5and picture amper5and  ·  5Comments

SmasherHell picture SmasherHell  ·  18Comments

connor11528 picture connor11528  ·  3Comments