I've got a list of messages of which the text includes some html which I want to display. So as suggested here and here what I'm currently trying is this:
<div ng-repeat="message in messages">
{{ message.sender_name }} - <div ng-bind-html="message.text"></div>
</div>
It displays the message.sender_name
, but not the message.text
. When I simply do {{ message.text }}
it displays the text correctly (but displaying the raw <br>
s without rendering them).
Does anybody know why this is not working?