0

I really dont understand this, the domsanitizer is destroying html in my textarea

I want to bypass the sanitisation, so I use this

this.product['name_fr'] = this.domSanitizer.bypassSecurityTrustHtml(this.product['name_fr']);

but in my textarea

<input class="productNameInput" [(ngModel)]="product.name_fr" [formControl]="nameValidatorFr"/>

this appears

SafeValue must use [property]=binding: fds fds fds fds ds (see http://g.co/ng/security#xss)

and in DB my string is stored empty

can someone enlight me on this ? I want to KEEP html intact

thanks

phil123456
  • 211
  • 3
  • 13

0 Answers0