Filters the HTML tags that are allowed for a given context.
Description
HTML tags and attribute names are case-insensitive in HTML but must be added to the KSES allow list in lowercase. An item added to the allow list in upper or mixed case will not recognized as permitted by KSES.
Parameters
$html
array[]- Allowed HTML tags.
$context
string- Context name.
Source
return apply_filters( 'wp_kses_allowed_html', $html, $context );
Changelog
Version | Description |
---|---|
3.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.