-2

I use {{message}} in template HTML. This code shows HTML as text in page. How I can show only one HTML tag <a href> as HTML in page?

Mustafa
  • 39
  • 5

1 Answers1

0

if have included ng-sanitize (doc) as dependency you could its directive "ng-bind-html" to sanitize your HTML-strings

<div ng-bind-html="message">

cirtrus
  • 497
  • 5
  • 16