Description
Filters the HTML tags that are allowed for a given context. 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.
Occurrences
Filename | Line Number |
---|---|
wp-includes/kses.php | 869 |
wp-includes/kses.php | 875 |
wp-includes/kses.php | 892 |
wp-includes/kses.php | 902 |
wp-includes/kses.php | 906 |
wp-includes/kses.php | 910 |
wp-includes/kses.php | 915 |
Parameters
Type | Name | Description |
---|---|---|
array[] | $html | Allowed HTML tags. |
string | $context | Context name. |
PHP Doc
/**
* Filters the HTML tags that are allowed for a given context.
*
* 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.
*
* @since 3.5.0
*
* @param array[] $html Allowed HTML tags.
* @param string $context Context name.
*/