A WordPress-centric search engine for devs and theme authors



wp-includes/kses.php ›

Functions40
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_initSets up most of the Kses filters for input form content.
kses_init_filtersAdds all Kses input form content filters.
kses_remove_filtersRemoves all Kses input form content filters.
safecss_filter_attrInline CSS filter
valid_unicodeHelper function to determine if a Unicode value is valid.
wp_filter_ksesSanitize content with allowed HTML Kses rules.
wp_filter_nohtml_ksesStrips all of the HTML in the content.
wp_filter_post_ksesSanitize content for allowed HTML tags for post content.
wp_ksesFilters content and keeps only allowable HTML elements.
wp_kses_allowed_htmlReturn a list of allowed tags and attributes for a given context.
wp_kses_array_lcGoes through an array and changes the keys to all lower case.
wp_kses_attrRemoves all attributes, if none are allowed for this element.
wp_kses_attr_checkDetermine whether an attribute is allowed.
wp_kses_attr_parseFinds all attributes of an HTML element.
wp_kses_bad_protocolSanitize string from bad protocols.
wp_kses_bad_protocol_onceSanitizes content from bad protocols and other characters.
wp_kses_bad_protocol_once2Callback for wp_kses_bad_protocol_once() regular expression.
wp_kses_check_attr_valPerforms different checks for attribute values.
wp_kses_dataSanitize content with allowed HTML Kses rules.
wp_kses_decode_entitiesConvert all entities to their character counterparts.
wp_kses_hairBuilds an attribute list from string containing attributes.
wp_kses_hair_parseBuilds an attribute list from string containing attributes.
wp_kses_hookYou add any kses hooks here.
wp_kses_html_errorHandles parsing errors in wp_kses_hair().
wp_kses_named_entitiesCallback for wp_kses_normalize_entities() regular expression.
wp_kses_normalize_entitiesConverts and fixes HTML entities.
wp_kses_normalize_entities2Callback for wp_kses_normalize_entities() regular expression.
wp_kses_normalize_entities3Callback for wp_kses_normalize_entities() for regular expression.
wp_kses_no_nullRemoves any invalid control characters in $string.
wp_kses_one_attrFilters one attribute only and ensures its value is allowed.
wp_kses_postSanitize content for allowed HTML tags for post content.
wp_kses_post_deepNavigates through an array, object, or scalar, and sanitizes content for allowed HTML tags for post content.
wp_kses_splitSearches for HTML tags, no matter how malformed.
wp_kses_split2Callback for wp_kses_split for fixing malformed HTML tags.
wp_kses_stripslashesStrips slashes from in front of quotes.
wp_kses_versionThis function returns kses' version number.
_wp_add_global_attributesHelper function to add global attributes to a tag in the allowed html list.
_wp_kses_decode_entities_chrRegex callback for wp_kses_decode_entities()
_wp_kses_decode_entities_chr_hexdecRegex callback for wp_kses_decode_entities()
_wp_kses_split_callbackCallback for wp_kses_split.