esc_attr


esc_attr ( $text )

Parameters:
  • (string|int|float) text The text to be escaped.
Returns:
  • (string) Escaped text.
Defined at:
Change Log:
  • 7: .

Description

Escaping for HTML attributes.

Related Functions

esc_attr__, esc_attr_e, esc_attr_x, esc_textarea, wp_kses_attr

Top Google Results

User discussions

wpseek mobile