mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 06:57:35 +01:00
Fix inline documentation for esc_js(). Intended for inline JS only, fixes #11690.
git-svn-id: http://svn.automattic.com/wordpress/trunk@13076 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
52f2783331
commit
53ac3d960e
@ -2300,9 +2300,9 @@ function htmlentities2($myHTML) {
|
||||
/**
|
||||
* Escape single quotes, htmlspecialchar " < > &, and fix line endings.
|
||||
*
|
||||
* Escapes text strings for echoing in JS, both inline (for example in onclick="...")
|
||||
* and inside <script> tag. Note that the strings have to be in single quotes.
|
||||
* The filter 'js_escape' is also applied here.
|
||||
* Escapes text strings for echoing in JS. It is intended to be used for inline JS
|
||||
* (in a tag attribute, for example onclick="..."). Note that the strings have to
|
||||
* be in single quotes. The filter 'js_escape' is also applied here.
|
||||
*
|
||||
* @since 2.8.0
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user