wp_kses_hair_parse

SummerySummery

Builds an attribute list from string containing attributes.

Syntax

wp_kses_hair_parse( string $attr )

DescriptionDescription

Does not modify input. May return "evil" output. In case of unexpected input, returns false instead of stripping things.

Based on wp_kses_hair() but does not return a multi-dimensional array.

ParametersParameters

$attr

(string) (Required) Attribute list from HTML element to closing HTML element tag.

ReturnReturn

(array|bool) List of attributes found in $attr. Returns false on failure.

SourceSource

File: wp-includes/kses.php


			

ChangelogChangelog

Changelog
Version Description
4.2.3 Introduced.
Scroll to Top