Skip to content

Make search match against text instead of html - #2703

Open
IanSimpson wants to merge 2 commits into
harvesthq:mainfrom
IanSimpson:search-against-text
Open

IanSimpson wants to merge 2 commits into
harvesthq:mainfrom
IanSimpson:search-against-text

Conversation

@IanSimpson

Copy link
Copy Markdown

Summary

This is a fix for #2548.

With search_contains enabled, the search was matching the HTML. For example, if an optgroup had the name "This & that", a search for "m" would match the the m in &.

This commit ensures searches are done against the raw text instead of the HTML value.

Ian Simpson added 2 commits September 25, 2016 19:35
If an option contained an html encoded character (e.g. >) the search would match the HTML value (e.g. "gt"). This commit ensures matches are done on the raw text value.
@koenpunt

Copy link
Copy Markdown
Contributor

Thanks for your contributions! Over the years there has been quite a lot to do about matching html or text (eg. #1150 and #1638), so accepting a change like this isn't straightforward as you can imagine.

@koenpunt

Copy link
Copy Markdown
Contributor

And a bit more recent: #2254

This branch has not been deployed

No deployments
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.

2 participants