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: Add escapeHtml for search #1551

Merged
merged 3 commits into from
Apr 12, 2021
Merged

Conversation

sy-records
Copy link
Member

Summary

escapeHtml was removed in support of search accents, which may cause some problems. #1549

After adding it question 2 will appear again. #1434 (review)

What's the best way to do it?

What kind of change does this PR introduce?

Bugfix

For any code change,

  • Related documentation has been updated if needed
  • Related tests have been updated or tests have been added

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

If yes, please describe the impact and migration path for existing applications:

Related issue, if any:

close #1549

Tested in the following browsers:

  • Chrome
  • Firefox
  • Safari
  • Edge
  • IE

@sy-records sy-records requested a review from a team April 1, 2021 07:43
@vercel
Copy link

vercel bot commented Apr 1, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/docsify-core/docsify-preview/EfcrK9pDV4QktU8CnkxwCR8APFAS
✅ Preview: https://docsify-preview-git-fork-sy-records-fix-1549-docsify-core.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 1, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8c8ef8e:

Sandbox Source
docsify-template Configuration

@Koooooo-7 Koooooo-7 requested a review from a team April 1, 2021 08:28
@sy-records sy-records merged commit c24f7f6 into docsifyjs:develop Apr 12, 2021
@sy-records sy-records deleted the fix-1549 branch April 12, 2021 01:47
trusktr added a commit that referenced this pull request May 4, 2021
* develop: (104 commits)
  chore: bump ssri from 6.0.1 to 6.0.2 (#1563)
  chore: Update Edit Document using develop branch (#1541)
  fix: Add escapeHtml for search (#1551)
  docs: link with plugin Pagination (#1554)
  fix: Upgrade dompurify from 2.2.6 to 2.2.7 (#1553)
  fix: upgrade dompurify from 2.2.6 to 2.2.7 (#1552)
  chore: bump y18n from 4.0.0 to 4.0.1 (#1548)
  chore: Fix search for missing pathNamespaces (#1547)
  fix: Upgrade docsify from 4.12.0 to 4.12.1 (#1544)
  docs:Update deploy, change Zeit to Vercel (#1540)
  fix: Cannot read property 'classList' of null (#1527)
  chore: fix microsoft/playwright-github-action error (#1534)
  Update PULL_REQUEST_TEMPLATE.md
  chore: Update CHANGELOG and Update test snapshots
  chore: add changelog 4.12.1
  [build] 4.12.1
  feat: Support search when there is no title (#1519)
  test(unit): add test cases on isExternal. (#1515)
  docs: Update Vercel logo link (#1520)
  fix: Upgrade docsify from 4.11.6 to 4.12.0 (#1518)
  ...
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.

search.js v4.12.1 Cross-Site Scripting
3 participants