-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Open
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open
Description
Context
No response
Bug description
When searching for terms that contain an ampersand (&), MkDocs search results display &
instead of &
.
This occurs both on my company documentation site that uses MkDocs, as well as on the official MkDocs documentation site itself (https://squidfunk.github.io/mkdocs-material/).
Example (here):
Related links
Similar issues have been opened and closed in the past, but the problem persists.
- search does not support utf8 #2970
- Search highlighting does not properly escape HTML #2879
- Possibly related: Search do not support utf8 first character #271
Reproduction
I tried but cannot reproduce this bug in a minimal site locally. But, it happens on https://squidfunk.github.io/mkdocs-material/ and our production site.
Steps to reproduce
- Open https://squidfunk.github.io/mkdocs-material/ in a browser.
- Use the search bar to search for a phrase with an ampersand, e.g.,
Your knowledge & skills
. - All ampersands are shown as
&
.
Browser
Safari, Firefox
Before submitting
- I have read and followed the bug reporting guidelines.
- I have attached links to the documentation, and possibly related issues and discussions.
- I assure that I have removed all customizations before submitting this bug report.
- I have attached a .zip file with a minimal reproduction using the built-in info plugin.
Metadata
Metadata
Assignees
Labels
bugIssue reports a bugIssue reports a bugresolvedIssue is resolved, yet unreleased if openIssue is resolved, yet unreleased if open