-
Notifications
You must be signed in to change notification settings - Fork 895
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
Searching for special characters like <,>,= fails in list.js search. #147
Comments
This issue can be fixed by adding conversion for following characters in list.js before performing the search:
I have tried a fix which works and following is the patch for it:
|
You can also find the changes @ runwaldarshu/listHtmlCharsFix@master@{1day}...master |
Oh, this looks interesting @runwaldarshu! I'll try implement, test and benchmark it as soon as possible. |
Are there any updates on this issue consideration? |
I also ran into an issue caused by this problem. Would be nice if we could put that in |
Has this / can it be implemented. Not being able to search for special characters is a deal-breaker for so many uses, including my list of songs (where I'm, I've, Love's, You're, You & Me, etc. are all the rage). |
I'm also hitting this issue, it's somewhat annoying that I can't use the CDN but have to use a "custom" version of list.js... Here's how I modified list.js:
|
See issue #327 for a solution which requires no modification to the script. It does however mean that special characters aren't searchable - as they're stripped out of both the search input AND searchable objects. Worked great for my use case. |
@javve this hasn't been implemented into the main library yet, right? |
No, list.js seems dead. I need it badly for one of my projects, but it seems I would need to fork it and add all the current pull requests. |
I am just modifying the library locally to add the things I need, maybe that will be a quicker solution for you @wolffe . For instance, these changes I am having to do myself. |
I have added lots of changes myself, but I would appreciate an official library. |
Wow, heh, I'm really sorry for my lack of updates around List.js 😰 I've been working with v1.2.0 for a while now and it's getting closer! I tried to reproduce this error but I don't think I understand everything exactly. Here is a Codepen I made that includes For me it works if I search with for How do you want it to work? ...and what browsers & os are you using? |
On that codepen, searching for tina&E should yield the obvious result :-) Chrome 48 on Windows 10 Pro |
If I have any text like "A&B" and search with following cases
So how to fix aboave issue ? |
Instead of actual characters lt; gt; is used it works.
The text was updated successfully, but these errors were encountered: