Open LeeScofield opened 7 years ago
var json = { value: '< ;strong> ;juicer< ;/strong> ;' };
var escape_tpl='${value}'; var unescape_tpl='$${value}';
juicer(escape_tpl, json); //输出 '<strong>juicer</strong>' juicer(unescape_tpl, json); //输出 'juicer'
这里的json变量应为var json = { value: '<strong>juicer</strong>' }; 这里应该是显示的问题。
var json = { value: '<strong>juicer</strong>' };
var json = { value: '< ;strong> ;juicer< ;/strong> ;' };
var escape_tpl='${value}'; var unescape_tpl='$${value}';
juicer(escape_tpl, json); //输出 '<strong>juicer</strong>' juicer(unescape_tpl, json); //输出 'juicer'
这里的json变量应为
var json = { value: '<strong>juicer</strong>' };
这里应该是显示的问题。