-
Notifications
You must be signed in to change notification settings - Fork 2
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
Strip special characters from hashtags #3
Comments
It might actually be worthwhile using Twitter's official JavaScript text processing library (twitter/twitter-text-js) here. |
I'm not sure that library is really all that useful here (it is intended for parsing tweets, not creating them, although certainly some of their regexps might be helpful...). Until we come up with a better/fancier solution, for now I think stripping all non-alphanumeric characters (plus underscores) is a safe and easy way to handle this. Open to suggestions though. |
…ifacts This should help with #3 for now.
We also have issues with special characters in links, see https://twitter.com/wpstubs/status/497984790360899585 |
Special characters break hashtags:
https://twitter.com/wpstubs/status/496166123277012992
We might replace characters like "&" that we can't strip without altering the meaning of the hashtag, see https://twitter.com/wpstubs/status/496151412510695424
The text was updated successfully, but these errors were encountered: