At the same time $sce
service was introduced (angular 1.2), support for ng-bind-html-unsafe
directive was dropped. The new directive is ng-bind-html
. If you use this, the code should work as documented:
<div ng-bind-html="mail.htmlbody"></div>
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…