I tried to create a blog in angularJS and in the post section of the post. I want to get a message from json and add it to a div div like this
<div class="content"> {{json.message}} </div>
Now my div has a paragraph, itβs almost HTML code like this
<p>this is my message</p>
but when I do this, I see it on the screen
<p>this is my message</p>
like text. I understand that in previous versions I could use ng-bind-html-unsafe, but I am using angularJS v1.2. Can someone show me code similar to ng-bind-html-unsafe so that I can do this work in v1.2? Thanks Daniel!
source share