wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



js_escape › WordPress Function

Da2.0.4
Deprecato2.8.0
js_escape ( $text )
Parametri:
  • (string) $text The text to be escaped.
    Richiesto:
Vedi:
Ritorna:
  • (string) Escaped text.
Definito a:
Codex:

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

The filter {@see 'js_escape'} is also applied by esc_js().


Sorgenti

function js_escape( $text ) {
	_deprecated_function( __FUNCTION__, '2.8.0', 'esc_js()' );
	return esc_js( $text );
}