Handles parsing errors in wp_kses_hair().The general plan is to remove everything to and including some whitespace, but it deals with quotes and apostrophes as well.
3831
Continue readingHandles parsing errors in wp_kses_hair().The general plan is to remove everything to and including some whitespace, but it deals with quotes and apostrophes as well.
3831
Continue readingYou add any kses hooks here.There is currently only one kses WordPress hook and it is called here. All parameters are passed to the hooks and expected to receive a string.
3829
Continue readingBuilds 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 readingConvert 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