wp_kses_one_attr


wp_kses_one_attr ( $string, $element )

Parameters:
  • (string) string 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_data, wp_kses_attr_parse, wp_kses_post

Top Google Results

User discussions

wpseek mobile