esc_html

esc_html

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('esc_html') is found 1 times:

  • /wp-includes/formatting.php line 4668
    4664
    4665
    4666
    4667
    4668
    4669
    4670
    4671
    4672
    4673
    4674
         *
         * @param string $safe_text The text after it has been escaped.
         * @param string $text      The text prior to being escaped.
         */
        return apply_filters( 'esc_html', $safe_text, $text );
    }
     
    /**
     * Escaping for HTML attributes.
     *
     * @since 2.8.0

See this hook used in plugins: