Check out example codes for "SafeValue must use [property]=binding:". It will help you in understanding the concepts better.

Code Example 1

constructor(private domSanitizer:DomSanitizer) {
  this.massTimingsHtml = this.getInnerHTMLValue();
}
getInnerHTMLValue(){
  return this.domSanitizer.bypassSecurityTrustHtml(this.parishDetail.mass_timings);
}

Learn ReactJs, React Native from akashmittal.com