我想在 angularjs 中将我的数据显示为 html。这是我的代码的一部分:
<div class="panel-body" ng-controller="hosgeldinizController">
<div id="divHosgeldiniz" name="hosgeldinizMessages" ng-repeat="hosgeldinizMessage in hosgeldinizMessages">
<div>
<span ng-class-odd="'degisimIcerik'" ng-class-even="'degisimIcerik alternate'" ng-bind-html="hosgeldinizMessage.M_Icerik">{{hosgeldinizMessage.M_Icerik}} </span>
</div>
</div>
</div>
但它不会显示为 html,它会像普通文本一样显示,但是 hosgeldinizMessage.M_Icerik 包含 html 元素。我应该怎么做才能显示为 html?