Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: attribute_escape

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
4508       *
4509       * Text passed to esc_attr() is stripped of invalid or special characters
4510       * before output.
4511       *
4512       * @since 2.0.6
4513       *
4514       * @param string $safe_text The text after it has been escaped.
4515       * @param string $text      The text prior to being escaped.
4516       */
4517      return apply_filters( 'attribute_escape', $safe_text, $text );
4518 }
4519
4520 /**
4521  * Escaping for textarea values.
4522  *
4523  * @since 3.1.0
4524  *
4525  * @param string $text
4526  * @return string