How do I format text from my controller?


#1

Hi,
ionic noob here, trying to format some text using the Angular Sanitizer.

Please see the codepen at http://codepen.io/anon/pen/pwjkc

I’m trying to format the body using trustAsHtml(), but obviously I’m missing something…

Please help :slight_smile:

  • Thanks a lot!

#2

Maybe the i-tag style is overwritten by css?
Look in your sourcecode the i-tag is correctly there.

html in bind-as-html

not using sanatizer/ using sanatizer and b, a -tag

Greetz,bengtler


#3

Ah, yes, of course. Thanks for pointing that out :smile: