Safe value must use [property]=binding after bypass security with DomSanitizer

前端 未结 5 1154
我寻月下人不归
我寻月下人不归 2020-12-05 13:18



        
5条回答
  •  没有蜡笔的小新
    2020-12-05 13:50

    You need to sanitize() the safevalue like this :

    this.domSanitizer.sanitize(SecurityContext.HTML,this.domSanitizer.bypassSecurityTrustHtml(this.parishDetail.mass_timings));
    

提交回复
热议问题