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

feat: Strip HTML from rich text search results #3783

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Oct 9, 2024

Replaces #3776

To do -

  • HTML tests
  • Do we need a /n as a separator?
  • Do we need to truncate results?

@@ -27,6 +33,7 @@ export const useSearch = <T extends object>({
useExtendedSearch: true,
includeMatches: true,
minMatchCharLength: 3,
ignoreLocation: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By default, just the first 60 characters are searched which was giving me some unexpected false negative results.

The testing I've done doesn't make this feel much slower performance-wise - will flag this when this PR is tested.

Docs: https://www.fusejs.io/api/options.html#ignorelocation

@DafyddLlyr DafyddLlyr changed the title dp/search strip html feat: Strip HTML from rich text search results Oct 9, 2024
Copy link

github-actions bot commented Oct 9, 2024

Pizza

Deployed 8750781 to https://3783.planx.pizza.

Useful links:

@DafyddLlyr DafyddLlyr marked this pull request as draft October 9, 2024 10:31
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