soosyze / kses

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.
12Updated last year

Alternatives and similar repositories for kses:

Users that are interested in kses are comparing it to the libraries listed below