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(search): Strip HTML tags from search results #3776

Closed
wants to merge 11 commits into from

Conversation

DafyddLlyr
Copy link
Contributor

@DafyddLlyr DafyddLlyr commented Oct 8, 2024

To do -

  • Test with HTML

@DafyddLlyr DafyddLlyr changed the base branch from main to dp/search-all-ui October 8, 2024 11:33
@DafyddLlyr DafyddLlyr changed the title dp/strip html tags feat(search): Strip HTML tags from search results Oct 8, 2024
@DafyddLlyr DafyddLlyr marked this pull request as draft October 8, 2024 11:34
Copy link

github-actions bot commented Oct 8, 2024

Pizza

Deployed a360a12 to https://3776.planx.pizza.

Useful links:

@@ -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

Base automatically changed from dp/search-all-ui to main October 9, 2024 09:54
@DafyddLlyr
Copy link
Contributor Author

Replaced by #3783

@DafyddLlyr DafyddLlyr closed this Oct 9, 2024
@DafyddLlyr DafyddLlyr deleted the dp/strip-html-tags branch October 9, 2024 10:07
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