I am currently working with the Angular framework to display data in my application.
The data I am dealing with contains HTML tags, for example:
$scope.test = <p>this is a test</p><strong>Bold text here...</strong>
When outputting this data in my HTML file like so:
<div>
{{test}}
</div>
The browser displays the exact text '
<p>this is a test</p> <strong>Bold text here...</strong>
'. However, I would like it to parse the HTML tags and display them as formatted content: this is a test
Bold text here....Is there a way to achieve this?
Thank you!