We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eef0ccb commit 71d2686Copy full SHA for 71d2686
src/wp-includes/html-api/class-wp-html-tag-processor.php
@@ -4146,7 +4146,7 @@ private function is_json_script_tag(): bool {
4146
*/
4147
private function escape_javascript_script_contents( string $text ): string {
4148
return preg_replace_callback(
4149
- '~(?P<HEAD></?)(?P<S_CHAR>s)(?P<TAIL>cript[\\t\\r\\n\\f />])~i',
+ '~(?P<HEAD></?)(?P<S_CHAR>s)(?P<TAIL>cript[ \\t\\f\\r\\n/>])~i',
4150
static function ( $matches ) {
4151
$escaped_s_char = 's' === $matches['S_CHAR']
4152
? '\\u0073'
0 commit comments