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,531
  • 1
  • 18
  • 46
Sharomet
  • 25
  • 7

1 Answers1

2

Try this:

<span [innerHtml]="yourObject.description"></span>
Dmitry Grinko
  • 13,806
  • 14
  • 62
  • 86