📜  SafeValue 必须使用 [property]=binding: - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:29.406000             🧑  作者: Mango

代码示例1
constructor(private domSanitizer:DomSanitizer) {
  this.massTimingsHtml = this.getInnerHTMLValue();
}
getInnerHTMLValue(){
  return this.domSanitizer.bypassSecurityTrustHtml(this.parishDetail.mass_timings);
}