Skip to content

Escape the JSON-LD against early script termination - #1247

Merged
mdydek merged 1 commit into
software-mansion:mainfrom
halskiszymon:geo-jsonld-escape
Aug 21, 2026
Merged

Escape the JSON-LD against early script termination#1247
mdydek merged 1 commit into
software-mansion:mainfrom
halskiszymon:geo-jsonld-escape

Conversation

@halskiszymon

Copy link
Copy Markdown
Contributor

Follow-up to #1244.

JSON.stringify leaves < unescaped, so a </script> inside any siteConfig value would close the script tag early. Escaped to \u003c.

Raised by Copilot on the same plugin in react-native-enriched-html#782; this is the same one-line fix.

@github-actions

Copy link
Copy Markdown

WPT non-regression comparison

ERROR — the comparison did not produce a report; the test run itself likely failed.

Workflow run · this comment is updated on every push.

@mdydek
mdydek merged commit 3a4c485 into software-mansion:main Aug 21, 2026
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants