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 ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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