Archive | Functions RSS feed for this section

wp_kses_hair

Builds an attribute list from string containing attributes.This function does a lot of work. It parses an attribute list into an array with attribute data, and tries to do the right thing even if it gets weird input. It will add quotes around attribute values that don’t have any quotes or apostrophes around them, to make it easier to produce HTML code that will conform to W3C’s HTML specification. It will also remove bad URL protocols from attribute values. It also reduces duplicate attributes by using the attribute defined first (foo=’bar’ foo=’baz’ will result in foo=’bar’).

3827

Continue reading

wp_kses_decode_entities

Convert all entities to their character counterparts.This function decodes numeric HTML entities (A and A). It doesn’t do anything with other entities like ä, but we don’t need them in the URL protocol whitelisting system anyway.

3825

Continue reading

wp_kses_check_attr_val

Performs different checks for attribute values.The currently implemented checks are “maxlen”, “minlen”, “maxval”, “minval” and “valueless”.

3821

Continue reading

wp_kses_bad_protocol_once

Sanitizes content from bad protocols and other characters.This function searches for URL protocols at the beginning of $string, while handling whitespace and HTML entities.

3819

Continue reading