diff --git a/packages/react/src/createInertiaApp.ts b/packages/react/src/createInertiaApp.ts index 8f428068c..932e99adf 100644 --- a/packages/react/src/createInertiaApp.ts +++ b/packages/react/src/createInertiaApp.ts @@ -124,7 +124,7 @@ export default async function createInertiaApp${JSON.stringify(initialPage)}
${html}
` + ? `
${html}
` : `
${html}
`, head: [head, css ? `` : ''], } diff --git a/packages/vue3/src/createInertiaApp.ts b/packages/vue3/src/createInertiaApp.ts index 8e084bdc5..b24138204 100644 --- a/packages/vue3/src/createInertiaApp.ts +++ b/packages/vue3/src/createInertiaApp.ts @@ -118,7 +118,7 @@ export default async function createInertiaApp inertia.renderSSR(req, res, { component: 'SSR/PageWithScriptElement', props: { - message: 'Hello from script element!', + message: 'Hello from script element! Escape .', }, }), ) diff --git a/tests/ssr.spec.ts b/tests/ssr.spec.ts index a00293534..faba55802 100644 --- a/tests/ssr.spec.ts +++ b/tests/ssr.spec.ts @@ -38,14 +38,14 @@ test.describe('SSR', () => { expect(html).toContain('data-page="app"') expect(html).toContain('.', }, }) })