Looking to build a blog page using AngularJS and running into an issue with the message section. Currently, I have a div set up like this:
<div class="post-content">
{{jsonPost.message}}
</div>
Within the jsonPost.message variable, I have a string that looks like this:
<p>paragraph 1</p>
<p>paragraph 2</p>
Instead of creating two HTML paragraphs, the text within the <p>
tags is displaying as text on the screen. Is there a way to render them as HTML code and then target them with CSS?
Thank you, Daniel!