-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decode HTML entities for previews and search index
fixes #15 we use the "he" library for this as the stripping has to happen at build time in `extendPageData`, i.e. in a NodeJS process that does not have access to the browser facilities for converting HTML entities. We don't just strip the entities as depending on the language, they may be important searchable characters (e.g. special non-ASCII letters of the language).
- Loading branch information
1 parent
948524c
commit 143e244
Showing
3 changed files
with
915 additions
and
1,252 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.