Is there an angular JS command that will do HTML escaping on text? I am processing a custom directive and have need to escape some of the output which it generates.
You can implement filter like this:
app.filter('escape', escape); function escape() { return function (html) { return angular.element('').text(html).html(); }; }