diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index 77f3ffa629..a88beb68e7 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -2199,8 +2199,10 @@ function htmlentities2($myHTML) { } /** - * Escape single quotes, specialchar double quotes, 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="...") + * and inside