Open
Description
Version:
@inertiajs/vue3
version: 2.0.11
Describe the problem:
When rendering <Head>
meta tags server-side (SSR), attribute values containing double quotes (for example, in the content
attribute of a <meta>
tag) are not escaped.
This results in invalid HTML output such as <meta name="description" content="This is the "best" book.">
.
Steps to reproduce:
- Use the
<Head>
component with a prop containing a double quote, e.g.:<Head> <meta name="description" content='This is the "best" example' /> </Head>
- Render a page server-side.
- View the page source.
- Observe that the resulting HTML contains unescaped double quotes:
<meta name="description" content="This is the "best" example.">
- Expected behaviour is for the SSR output to escape the double quotes, e.g.:
<meta name="description" content="This is the "best" example.">
Metadata
Metadata
Assignees
Labels
No labels