About

Function to filter (validate/sanitize) strings with a view to discharge all not allowed HTML elements.

Kses is an HTML/XHTML filter written in PHP to discharge unwanted HTML elements, attributes and values.

This function makes sure that only the allowed HTML element names, attribute names and attribute values plus only sane HTML entities will occur in $string.

Introduction, tutorial and documentation:

history | excerpt history