Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: esc_textarea

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
4003      $safe_text = htmlspecialchars( $text, ENT_QUOTES, get_option( 'blog_charset' ) );
4004      /**
4005       * Filters a string cleaned and escaped for output in a textarea element.
4006       *
4007       * @since 3.1.0
4008       *
4009       * @param string $safe_text The text after it has been escaped.
4010        * @param string $text      The text prior to being escaped.
4011       */
4012      return apply_filters( 'esc_textarea', $safe_text, $text );
4013 }
4014
4015 /**
4016  * Escape an HTML tag name.
4017  *
4018  * @since 2.5.0
4019  *
4020  * @param string $tag_name
4021  * @return string