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:

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.

Related Functions

wp_kses_attr, wp_kses_check_attr_val, wp_kses_attr_check, wp_kses_post, wp_kses_hair

Top Google Results

User discussions

wpseek mobile