fergiemcdowall / norch-angular-app

A basic Norch-powered angular app. Use as an example or starting point.
MIT License
2 stars 0 forks source link

How do I define a piece of HTML as safe? #11

Closed eklem closed 9 years ago

eklem commented 9 years ago

In the controller.js there is a little function to define some HTML string as safe. How do I get to use it in my template search-list.html?

I have a teaser field that I want to render.

eklem commented 9 years ago

Ok, figured it out:

<blockquote ng-bind-html="trustworthy(item.document.teaser)"></blockquote>
fergiemcdowall commented 9 years ago

Goody! :)