esc_textarea filter-hook . WP 3.1.0
Filters a string cleaned and escaped for output in a textarea element.
Usage
add_filter( 'esc_textarea', 'filter_function_name_4841', 10, 2 ); function filter_function_name_4841( $safe_text, $text ){ // filter... return $safe_text; }
- $safe_text(string)
- The text after it has been escaped.
- $text(string)
- The text prior to being escaped.
Changelog
Since 3.1.0 | Introduced. |
Where the hook is called
esc_textarea
wp-includes/formatting.php 4537
return apply_filters( 'esc_textarea', $safe_text, $text );