wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-includes/kses.php › WordPress File
Functions35
› kses 0.2.2 - HTML/XHTML filter that only allows some elements and attributes
Copyright (C) 2002, 2003, 2005 Ulf Harnhammar
Function | Short description |
---|---|
kses_init | Sets up most of the KSES filters for input form content. |
kses_init_filters | Adds all KSES input form content filters. |
kses_remove_filters | Removes all KSES input form content filters. |
safecss_filter_attr | Filters an inline style attribute and removes disallowed rules. |
valid_unicode | Determines if a Unicode codepoint is valid. |
wp_filter_global_styles_post | Sanitizes global styles user content removing unsafe rules. |
wp_filter_kses | Sanitize content with allowed HTML KSES rules. |
wp_filter_nohtml_kses | Strips all HTML from a text string. |
wp_filter_post_kses | Sanitizes content for allowed HTML tags for post content. |
wp_kses | Filters text content and strips out disallowed HTML. |
wp_kses_allowed_html | Returns an array of allowed HTML tags and attributes for a given context. |
wp_kses_array_lc | Converts the keys of an array to lowercase. |
wp_kses_attr | Removes all attributes, if none are allowed for this element. |
wp_kses_attr_check | Determines whether an attribute is allowed. |
wp_kses_attr_parse | Finds all attributes of an HTML element. |
wp_kses_bad_protocol | Sanitizes a string and removed disallowed URL protocols. |
wp_kses_bad_protocol_once | Sanitizes content from bad protocols and other characters. |
wp_kses_check_attr_val | Performs different checks for attribute values. |
wp_kses_data | Sanitize content with allowed HTML KSES rules. |
wp_kses_decode_entities | Converts all numeric HTML entities to their named counterparts. |
wp_kses_hair | Builds an attribute list from string containing attributes. |
wp_kses_hair_parse | Builds an attribute list from string containing attributes. |
wp_kses_hook | You add any KSES hooks here. |
wp_kses_html_error | Handles parsing errors in `wp_kses_hair()`. |
wp_kses_named_entities | Callback for `wp_kses_normalize_entities()` regular expression. |
wp_kses_normalize_entities | Converts and fixes HTML entities. |
wp_kses_no_null | Removes any invalid control characters in a text string. |
wp_kses_one_attr | Filters one HTML attribute and ensures its value is allowed. |
wp_kses_post | Sanitizes content for allowed HTML tags for post content. |
wp_kses_post_deep | Navigates through an array, object, or scalar, and sanitizes content for allowed HTML tags for post content. |
wp_kses_split | Searches for HTML tags, no matter how malformed. |
wp_kses_stripslashes | Strips slashes from in front of quotes. |
wp_kses_uri_attributes | Returns an array of HTML attribute names whose value contains a URL. |
wp_kses_version | Returns the version number of KSES. |
wp_kses_xml_named_entities | Callback for `wp_kses_normalize_entities()` regular expression. |