Allow certain style attributes with ngSanitize

前端 未结 2 641
故里飘歌
故里飘歌 2021-01-07 21:05

I am using ngSanitize in an AngularJS application to remove unwanted or dangerous parts. However, the content is generated using an HTML Richtext editor and contains some st

2条回答
  •  粉色の甜心
    2021-01-07 21:38

    The folks over at textAngular have a fork of ng-sanitize that will allow for style attributes. Use their version instead of ng-sanitize.

提交回复
热议问题