Fix inline documentation for esc_js(). Intended for inline JS only, fixes #11690.
git-svn-id: https://develop.svn.wordpress.org/trunk@13076 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
09916f140e
commit
e280df1945
@ -2300,9 +2300,9 @@ function htmlentities2($myHTML) {
|
|||||||
/**
|
/**
|
||||||
* Escape single quotes, htmlspecialchar " < > &, and fix line endings.
|
* Escape single quotes, htmlspecialchar " < > &, and fix line endings.
|
||||||
*
|
*
|
||||||
* Escapes text strings for echoing in JS, both inline (for example in onclick="...")
|
* Escapes text strings for echoing in JS. It is intended to be used for inline JS
|
||||||
* and inside <script> tag. Note that the strings have to be in single quotes.
|
* (in a tag attribute, for example onclick="..."). Note that the strings have to
|
||||||
* The filter 'js_escape' is also applied here.
|
* be in single quotes. The filter 'js_escape' is also applied here.
|
||||||
*
|
*
|
||||||
* @since 2.8.0
|
* @since 2.8.0
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user