My goal was to eliminate unwanted html elements from my output, such as " , '
, and more.
Here is the code I used within my script tag:
scope.categorywithouthtml = function () {
return sce.trustAsHtml(scope.directories.dirurl);
return sce.trustAsHtml(scope.directories.text);
};
Below is the code to remove from dirurl and text:
<span" ng-bind-html="categorywithouthtml()" "{{dir.dirurl}}"></span>
<a href= "{{dir.dirurl}}" class="button1" rel="{{dir.text}}">
I utilized a span for removal - did I overlook anything?
<a href= "{{dir.dirurl}}" class="button1" rel="{{dir.text}}">
The desired output in place of {{dir.dirurl}} should not contain " , . ', etc.