0

Im retrieving from my DB the following string: "P.5 ¿Conoce la <strong><u>OFICINA VIRTUAL</u></strong> de {TOKEN:ATTRIBUTE_50}?" that I need to show as HTML with the strong and u raw labels.

Im sure I need to make a Pipe but have no idea how to do it using Angular 2 with cli, ¿any help?

PriNcee
  • 2,436
  • 3
  • 17
  • 21
  • 2
    No pipes necessary! You want to see a very popular QA already provided for this very topic: https://stackoverflow.com/questions/31548311/angular-2-html-binding/32104766#32104766 `[innerHTML]="yourVar"` – Dawson Toth May 25 '17 at 15:12
  • 1
    thats magic!! thanks!! – PriNcee May 25 '17 at 15:16

0 Answers0