【发布时间】:2014-07-31 07:28:25
【问题描述】:
实际上我试图删除输出中的 html 不需要的元素,例如 " , ' 等...
这是我在脚本标签中使用的代码
scope.categorywithouthtml = function () {
return sce.trustAsHtml(scope.directories.dirurl);
return sce.trustAsHtml(scope.directories.text);
};
这是我要在 dirurl 和 text
中删除的代码<span" ng-bind-html="categorywithouthtml()" "{{dir.dirurl}}"></span>
<a href= "{{dir.dirurl}}" class="button1" rel="{{dir.text}}">
我使用 span 删除它,我错过了什么吗?
<a href= "{{dir.dirurl}}" class="button1" rel="{{dir.text}}">
在 {{dir.dirurl}} 的地方,输出不应有 " , . ' 等。
【问题讨论】:
标签: javascript asp.net json angularjs