It removes all unwanted HTML elements and attributes, no matter how malformed HTML input you give it. Checks on attribute values. Can be used to avoid Cross-Site Scripting (XSS), Buffer Overflows and Denial of Service attacks, among other things.
php security filter xss web-security xss-attacks kses dompurify cross-site-scripting prevent-xss-attacks
-
Updated
May 10, 2023 - PHP