Reputation: 249
Working with AngularJS, i have a json object with custom HTML, including a directive tag for use with Prism.
For example,
<pre><code class="language-clike" prism> ... </code></pre>
This results in:
<pre><code class="language-clike"> ... </code></pre>
How can I avoid this?
I'm returning data the following way:
...
$sce.trustAsHtml($scope.page);
...
<article ng-bind-html="page.content"></article>
Upvotes: 1
Views: 112