WordPress Developer Resources
Sanitizes global styles user content removing unsafe rules.
Filters the check for unsafe CSS in `safecss_filter_attr`.
Callback for `wp_kses_normalize_entities()` regular expression.
Returns an array of HTML attribute names whose value contains a URL.
Filters the list of attributes that are required to contain a URL.
Navigates through an array, object, or scalar, and sanitizes content for allowed HTML tags for post content.
Finds all attributes of an HTML element.
Builds an attribute list from string containing attributes.
Determines whether an attribute is allowed.
Filters one HTML attribute and ensures its value is allowed.
Sanitize content with allowed HTML KSES rules.
Sanitizes content for allowed HTML tags for post content.
Strips all HTML from a text string.
Adds all KSES input form content filters.
Removes all KSES input form content filters.
Sets up most of the KSES filters for input form content.
Filters an inline style attribute and removes disallowed rules.
Filters the list of allowed CSS attributes.
Removes any invalid control characters in a text string.
Strips slashes from in front of quotes.
Converts the keys of an array to lowercase.
Handles parsing errors in `wp_kses_hair()`.
Sanitizes content from bad protocols and other characters.
Converts and fixes HTML entities.
Removes all attributes, if none are allowed for this element.
Determines if a Unicode codepoint is valid.
Converts all numeric HTML entities to their named counterparts.