HTML security

How to secure HTML from a WYSIWYG editor in PHP

You secure HTML from a WYSIWYG editor on the server: before every save, you pass it through a sanitizer built on a parser and an allowlist of tags, attributes, classes and URLs. On top of that come supporting layers – displaying content in the right context, a Content Security Policy header, safe…

RSS feed