Switch language

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




js_escape [ WordPress Function ]

js_escape ( $text )
Parameters:
  • (string) $text The text to be escaped.
See:
Returns:
  • (string) Escaped text.
Defined at:



Escape single quotes, specialchar double quotes, and fix line endings.

The filter 'js_escape' is also applied by esc_js()

Source


<?php
function js_escape$text ) {
    
_deprecated_function__FUNCTION__'2.8''esc_js()' );
    return 
esc_js$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