Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docsearch-react): use dangerouslySetInnerHTML for results title #2173

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

PierreBerger
Copy link

As mentioned in remix-run/remix-website#157, hit titles containing HTML character entities (such as <) are not displayed correctly.

image

I'm not particularly fond of using dangerouslySetInnerHTML, but I noticed it being utilized in the Snippet component to display hit content. You can find the usage here.

Copy link

netlify bot commented Feb 2, 2024

👷 Deploy request for docsearch pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit b5b6df2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant