Skip to content

Commit 3b5ef4e

Browse files
committed
Improve comment
1 parent 8d30680 commit 3b5ef4e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/wp-includes/html-api/class-wp-html-tag-processor.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3870,14 +3870,12 @@ static function ( $matches ) {
38703870
*
38713871
* The following replacement may appear insufficient, "<" is replaced
38723872
* with its JSON escape sequence "\u003C" without considering whether
3873-
* the "<" is preceded by an escaping slash. JSON does not support
3874-
* arbitrary character escaping (like JavaScript strings) so "\<"
3875-
* is invalid JSON and would have to be preceded by
3876-
* an escaped backslash: "\\<".
3873+
* the "<" is preceded by an escaping backslash. JSON does not support
3874+
* arbitrary character escaping in strings (unlike JavaScript) so "\<"
3875+
* is invalid JSON and does not need to be considered.
38773876
*
38783877
* @see https://www.json.org/json-en.html
38793878
*/
3880-
38813879
$plaintext_content = strtr(
38823880
$plaintext_content,
38833881
array( '<' => '\\u003C' )

0 commit comments

Comments
 (0)