Angular SafeValue must use [property]=binding

Error: Getting SafeValue must use [property]=binding

Solution is to add a bypass override to your html. Follow the below mentioned steps:

Add the component code like this:

constructor(private domSanitizer: DomSanitizer) {
  this.myHtml = this.getMyHtmlValue();
}

getMyHtmlValue(){
  return this.domSanitizer.bypassSecurityTrustHtml(this.myDto.myHtml);
}

Html will look like this:

<p [innerHTML]="myHtml"></p>