Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: esc_html

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
4545       *
4546       * Text passed to esc_html() is stripped of invalid or special characters
4547       * before output.
4548       *
4549       * @since 2.8.0
4550       *
4551       * @param string $safe_text The text after it has been escaped.
4552       * @param string $text      The text prior to being escaped.
4553       */
4554      return apply_filters( 'esc_html', $safe_text, $text );
4555 }
4556
4557 /**
4558  * Escaping for HTML attributes.
4559  *
4560  * @since 2.8.0
4561  *
4562  * @param string $text
4563  * @return string