Merge pull request #4799 from G-Ambatte/escapeDollarSignForHTMLReplace

Prevent pattern matching in HTML replace function
This commit is contained in:
Trevor Buckner authored and GitHub committed 2026-05-10 11:21:13 -04:00
commit 978a4c6f5f
1 file changed
+1 -1
+1 -1
View File
@@ -593,7 +593,7 @@ export default async function createApp(vite) {
html = html.replace(
'<head>',
`<head>\n<script id="props" >window.__INITIAL_PROPS__ = ${JSON.stringify(props)}</script>\n${ogMetaTags}`
()=>{ return `<head>\n<script id="props" >window.__INITIAL_PROPS__ = ${JSON.stringify(props)}</script>\n${ogMetaTags}`; }
);
return html;