WordPress at a glance

kses (html cleanup sanitize) (tag)

wp_filter_kses()

Sanitize content with allowed HTML Kses rules.

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_array_lc()

Goes through an array and changes the keys to all lower case.

wp_kses_data()

Sanitize content with allowed HTML Kses rules.

wp_kses_hair()

Builds an attribute list from string containing attributes.

wp_kses_post()

Sanitize content for allowed HTML tags for post content.

wp_kses_uri_attributes()

Helper function listing HTML attributes containing a URL.