Skip to content

Commit

Permalink
encode uri for description and title
Browse files Browse the repository at this point in the history
  • Loading branch information
iainnash committed Oct 7, 2024
1 parent d3998d2 commit 0c866f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) : '') || '')}
/>
)}
</Helmet>
Expand Down

0 comments on commit 0c866f8

Please sign in to comment.