Hi all, via a GET REST I get my data.
One of the fields of my data contains HTML code. If I do a
console.log(data.body) I can see this:
format: "filtered_html"
safe_summary: ""
safe_value: "<p>Questa è una prova</p>↵"
summary: ""
value: "Questa è una prova"
Now I need to display “safe_value”, but how ?
If I write:
<p class="content">
{{post.body.und[0].safe_value}}
</p>
I see (into my browser)
<p>Questa è una prova</p>
I have read something about ng-bind-unsafe-html, but I have not understand it.
How can I display “Questa è una prova” get via “safe_value” ?
Thanks.
M.
--
Davide Morelli
[email protected]
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.