Commit 439ded4
authored
Escape the JSON-LD against early script termination (#4462)
Follow-up to #4458.
`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.1 parent 8a4d05d commit 439ded4
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
0 commit comments