I have an HTML encoded string like this:
Sign up and get <span class="strong">Something for FREE!</span>
When I use ngSanitize and ng-bind-html in my template like this:
<p ng-bind-html="someText"></p>
I get back the HTML decoded string:
Sign up and get <span class="strong">Something for Free!</span>
But it literally shows the HTML decoded string in browser, instead of rendering the HTML correctly.
How can I have it render the correct HTML in the DOM?