kses (html cleanup sanitize) (tag)

allowed_tags()

Outputs the allowed HTML tags and their attributes. Outputs as an encoded HTML string.

wp_filter_kses()

Cleans text, leaving only allowed HTML tags. Expects escaped data.

wp_filter_nohtml_kses()

Strips all of the HTML tags in the given content. Receives a slashed string (content). Returns the cleared content.

wp_kses()

Filters content and keeps only allowable HTML tags, their attributes, and attributes values.

wp_kses_allowed_html()

Returns a list of allowed HTML tags and their attributes for use in functions like: wp_kses().

wp_kses_array_lc()

Translates all keys of the specified array to lowercase (ABC to abc). Keys of nested arrays are also processed.

wp_kses_data()

Cleans text, leaving only allowed HTML tags and their attributes. Expects unslashed text.

wp_kses_hair()

Gets a list of HTML tag attributes (as an array) from the provided string with attributes.

wp_kses_post()

Sanitizes the passed string (content), leaving in it only allowed post content HTML tags for the current user.

wp_kses_uri_attributes()

Gets a list of HTML attributes that (according to the specification) should specify a URL.

wp_kses_version()

Returns the version of the text filtering kses.