I am injecting text into my Angular app with JSON objects. There is a "bio" section which requires HTML styling such as <br /> that way the text is not one chunk of unreadable text. I have tried trustAsHtml but it did not work for me. A working example would be best as I have read through Angular documentation and cannot get anyhting to work for me.
Help is greatly appreciated!
HTML w/ Angular JS
<div class="bio">
{{exhibits[whichItem].bio}}
</div>
JSON
[
{
"name":"Name goes here",
"bio":"First long block of text goes here then it needs a break <br /> and the second long block of text is here."
}
]