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_attr_parse, wp_kses_data

Top Google Results

User discussions

wpseek mobile