好的,我正在使用jQuery,tmpl插件和这个:
${$value.Text}@H_301_4@这是可以的,工作正常,但正如我刚刚发现通过the documentation:
@H_301_4@Using {{html fieldNameOrExpression}}@H_301_4@好的。但是我无法使用{{html}}标签来处理我的$ {$ value.Text}。 @H_301_4@我尝试过{{html $ {$ value.Text}}或{html $ {$ value.Text}},但它不起作用。
is equivalent to using
${fieldNameOrExpression},except that
it renders unencoded text into the
HTML DOM,whereas ${} encodes values
by default.
解决方法
正确的语法是:
{{html $value.Text}}