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

Eascaping special characters #454

Open
elena18 opened this issue May 25, 2021 · 3 comments
Open

Eascaping special characters #454

elena18 opened this issue May 25, 2021 · 3 comments

Comments

@elena18
Copy link

elena18 commented May 25, 2021

Which is the best way to escape special characters? In the json source I have an area name that is "Tañon Strait". I don't want people digiting the tilde, but instead by digiting "tan" they get their value

@elena18
Copy link
Author

elena18 commented May 28, 2021

@pawelczak here is the link to a piece of code I found about this issue, but I don't really know how to apply to easyautocomplete

var accentMap = { 'á': 'a', 'é': 'e', 'í': 'i', 'ó': 'o', 'ú': 'u' }; function accent_fold(s) { if (!s) { return ''; } var ret = ''; for (var i = 0; i < s.length; i++) { ret += accent_map[s.charAt(i)] || s.charAt(i); } return ret; };

The solution is mentioned also on Stackoverflow at this post
Thanks

@busubs
Copy link

busubs commented May 28, 2021

can u look my problem?
#455

@elena18
Copy link
Author

elena18 commented May 28, 2021 via email

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

No branches or pull requests

2 participants