I had to implement the remaining character count functionality (according to Twitter rules).
Can someone point me to JS library/function I can use directly?
I had to implement the remaining character count functionality (according to Twitter rules).
Can someone point me to JS library/function I can use directly?
Twitter provide the Twitter Text JavaScript library - it contains their official character count.
twttr.txt.getTweetLength()
is the function you need.