2
var text1 = "<b>sometext</b>";     
var text2 = "&lt;b&gt;sometext&lt;/b&gt;";

ng-bind-html="text1" works fine. The result is sometext but ng-bind-html="text2" doesn't work. The result is <b>sometext<b>

How can I makeng-bind-html="text2" work. Thank you.

monad98
  • 291
  • 4
  • 15

0 Answers0