You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When websites contain encoded special characters (e.g. & instead of &), they aren’t displayed correctly in the DocSearch UI.
Steps to reproduce
Set up a website that uses encoded special characters (e.g. &) in a heading.
Use the docsearch helper in the record extractor to extract contents.
The encoded special characters are indexed.
When rendering the DocSearch UI, the record contents are encoded again which means that & is displayed rather than &.
You can test this on our documentation site: https://docs.aleph.occrp.org. The sidebar has a "Developers & Admins" section.
This is what it is rendered like in the DocSearch UI:
Expected behavior
Algolia Crawler or the docsearch helper should take care of decoding encoded characters, e.g. by using the respective Cheerio configuration when loading the HTML or by decoding after extracting contents from the HTML.
I’ve adjusted the Crawler configuration and manually decode & for now, but it would be nice if either Aloglia Crawler or the docsearch helper could do this automatically.
Description
When websites contain encoded special characters (e.g.
&
instead of&
), they aren’t displayed correctly in the DocSearch UI.Steps to reproduce
&
) in a heading.docsearch
helper in the record extractor to extract contents.&
is displayed rather than&
.You can test this on our documentation site: https://docs.aleph.occrp.org. The sidebar has a "Developers & Admins" section.
This is what it is rendered like in the DocSearch UI:
Expected behavior
Algolia Crawler or the
docsearch
helper should take care of decoding encoded characters, e.g. by using the respective Cheerio configuration when loading the HTML or by decoding after extracting contents from the HTML.I’ve adjusted the Crawler configuration and manually decode
&
for now, but it would be nice if either Aloglia Crawler or thedocsearch
helper could do this automatically.Environment
The text was updated successfully, but these errors were encountered: