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
1752  * Escaping for HTML attributes.
1753  *
1754  * @since 2.0.6
1755  *
1756  * @param string $text
1757  * @return string
1758  */
1759 function attribute_escape($text) {
1760      $safe_text = wp_specialchars($text, true);
1761      return apply_filters('attribute_escape', $safe_text, $text);
1762 }
1763
1764 /**
1765  * Escape a HTML tag name.
1766  *
1767  * @since 2.5.0
1768  *
1769  * @param string $tag_name
1770  * @return string