Filters content to be run through KSES.
Parameters
$contentstring- Content to filter through KSES.
$allowed_htmlarray[]|string- An array of allowed HTML elements and attributes, or a context name such as
'post'. See wp_kses_allowed_html() for the list of accepted context names. $allowed_protocolsstring[]- Array of allowed URL protocols.
Source
return apply_filters( 'pre_kses', $content, $allowed_html, $allowed_protocols );
Changelog
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.