From 0c866f825160c0a568dd4d3c13ab11d1613b3155 Mon Sep 17 00:00:00 2001 From: iain nash Date: Mon, 7 Oct 2024 19:05:41 -0400 Subject: [PATCH] encode uri for description and title --- src/app/root.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/root.tsx b/src/app/root.tsx index 5d1971d9..af94490f 100644 --- a/src/app/root.tsx +++ b/src/app/root.tsx @@ -139,8 +139,8 @@ function Head({ frontmatter }: { frontmatter: Module['frontmatter'] }) { typeof logoUrl === 'string' ? logoUrl : logoUrl?.dark || '' }`, ) - .replace('%title', title || '') - .replace('%description', (description !== 'undefined' ? description : '') || '')} + .replace('%title', encodeURIComponent(title) || '') + .replace('%description', (description !== 'undefined' ? encodeURIComponent(description) : '') || '')} /> )}