fix: escape description in head

pull/5158/head
Divyansh Singh 6 months ago
parent 09af6c73a8
commit d96bf1dc61

@ -169,7 +169,7 @@ export async function renderPage(
${ ${
isDescriptionOverridden(head) isDescriptionOverridden(head)
? '' ? ''
: `<meta name="description" content="${description}">` : `<meta name="description" content="${escapeHtml(description)}">`
} }
<meta name="generator" content="VitePress v${version}"> <meta name="generator" content="VitePress v${version}">
${stylesheetLink} ${stylesheetLink}

Loading…
Cancel
Save