在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tgalopin/html-sanitizer开源软件地址:https://github.com/tgalopin/html-sanitizer开源编程语言:PHP 86.9%开源软件介绍:html-sanitizerhtml-sanitizer is a library aiming at handling, cleaning and sanitizing HTML sent by external users (who you cannot trust), allowing you to store it and display it safely. It has sensible defaults to provide a great developer experience while still being entirely configurable. Internally, the sanitizer has a deep understanding of HTML: it parses the input and create a tree of DOMNode objects, which it uses to keep only the safe elements from the content. By using this technique, it is safe (it works with a strict whitelist), fast and easily extensible. It also provides useful features such as the possibility to transform images or iframes URLs to HTTPS. Symfony integrationThis library is also available as a Symfony bundle. Documentation
Security IssuesIf you discover a security vulnerability within the sanitizer, please follow our disclosure procedure. Backward Compatibility promiseThis library follows the same Backward Compatibility promise as the Symfony framework: https://symfony.com/doc/current/contributing/code/bc.html
ThanksMany thanks to:
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论