Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




esc_attr [ WordPress Function ]

esc_attr ( $text )
Parameters:
  • (string) $text
Returns:
  • (string)
Defined at:



Escaping for HTML attributes.

Source


<?php
function esc_attr$text ) {
    
$safe_text wp_check_invalid_utf8$text );
    
$safe_text _wp_specialchars$safe_textENT_QUOTES );
    return 
apply_filters'attribute_escape'$safe_text$text );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics