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

Emoji escaping #70

Closed
tmaslen opened this issue Jul 8, 2015 · 1 comment
Closed

Emoji escaping #70

tmaslen opened this issue Jul 8, 2015 · 1 comment

Comments

@tmaslen
Copy link

tmaslen commented Jul 8, 2015

Hello,

This is probably more a question than a reporting of an issue. I'm using twitter-text to escape non standard characters for use in a webpage. It works really well - thanks for making it - except with emojis. Should I expect twitter-text to work with emojis?

Here's an example of what I'm doing...

var text = "Jason Grigsby, ☁4"
console.log(twitter.htmlEscape(text));

I'm passing the escaped values through handlebars.js.

If html escaping isn't possible with emojis, are you able to tell me the best way to make sure emojis are presented properly?

Thanks,
/t

@tmaslen
Copy link
Author

tmaslen commented Jul 8, 2015

Had forgot to set my content type to UTF-8 :-)

@tmaslen tmaslen closed this as completed Jul 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant