Why the Sanitizer API is just setHTML()

Sanitizing HTML is the practice of taking a piece of HTML and removing some unwanted elements and attributes. We are specifying an API that will be directly built into the browser. In fact, you can already use it inFirefox and Chrome.

Nowadays, HTML sanitization is often done to allow …

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论