diff --git a/server/app.js b/server/app.js index dfcd96ec6..cff01dcff 100644 --- a/server/app.js +++ b/server/app.js @@ -280,9 +280,14 @@ export default async function createApp(vite) { html = await vite.transformIndexHtml(req.originalUrl, html); } + const safeProps = JSON.stringify(props).replace(/<(?=\/?script)/ig, '\\u003c'); html = html.replace( '
', - ()=>{ return `\n\n${ogMetaTags}`; } + `\n` + + `\n` + + ogMetaTags ); return html;