0

I have collection

{
    "_id" : 1,
    "title" : "Title",
    "description" : "<p>Text ...</p>",
}

I need to get the description in Angular. But when I output this data, I get a string <p>Text ...</p> instead of a tag <p>

Sunil Lama
  • 4,508
  • 1
  • 17
  • 46
Sharomet
  • 25
  • 7

1 Answers1

2

Try this:

<span [innerHtml]="yourObject.description"></span>
Dmitry Grinko
  • 11,162
  • 12
  • 52
  • 71