【发布时间】:2015-10-15 07:33:41
【问题描述】:
我尝试在 jquery 模板中使用 {{ html }} 加载字符串。 但是脚本注入会影响 {{html }}。 如何限制脚本注入。
【问题讨论】:
-
你使用的是 jquery-template 还是 jsrender
-
@ArunPJohny jquery-template
-
你能在jsfiddle.net/arunpjohny/6budswe9/1重新创建问题
-
@ArunPJohny 我更新了jsfiddle.net/6budswe9/3中的代码
-
见stackoverflow.com/questions/236073/… - 这不是jquery-template的问题......这是因为html如何解析
script标签