Skip to content

Commit d58831e

Browse files
authored
Escape \ in unicode escape sequence strings
1 parent a96d8ac commit d58831e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3765,8 +3765,8 @@ public function set_modifiable_text( string $plaintext_content ): bool {
37653765
'~<(/?)(s)(cript)([\t\r\n\f />])~i',
37663766
static function ( $matches ) {
37673767
$escaped_s_char = 's' === $matches[2]
3768-
? '\u0073'
3769-
: '\u0053';
3768+
? '\\u0073'
3769+
: '\\u0053';
37703770
return "<{$matches[1]}{$escaped_s_char}{$matches[3]}{$matches[4]}";
37713771
},
37723772
$plaintext_content

0 commit comments

Comments
 (0)