wp_kses_one_attr
wp_kses_one_attr ( $attr, $element )
Parameters:- (string) attr The 'whole' attribute, including name and value.
- (string) element The HTML element name to which the attribute belongs.
Returns:- (string) Filtered attribute.
Defined at: - Introduced in WordPress: 4.2.3
- Deprecated in WordPress: —
Description
Filters one HTML attribute and ensures its value is allowed.This function can escape data in some situations where `wp_kses()` must strip the whole attribute.