Display rich text


#1

Hello

I’m looking to display rich text in my ionic cards. How can I render some text as bold text on ionic - I get this text from my server as json.

Thanks a ton
SK


#2

something like this:

<p ng-bind-html="scopeVariableWithRichText"></p>

But there is the possibility, that angular blocks this then you need $sce
https://docs.angularjs.org/api/ng/service/$sce

$sce.trustAsHtml(yourHTMLContent);