js_escape


js_escape ( $text )

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

Description

Escape single quotes, specialchar double quotes, and fix line endings.The filter {@see 'js_escape'} is also applied by esc_js().

Related Functions

tag_escape, like_escape, show_message, attribute_escape, esc_attr_e

Top Google Results

User discussions

wpseek mobile