twitter-archive/twitter-text-js

autoLink adds inappropriate attributes

ded opened this issue · 2 comments

ded commented
twttr.txt.autoLink('hello http://twitter.com', {
  , usernameClass: 'custom-user'
})

outputs:

hello <a href="http://twitter.com" usernameClass="custom-user" >http://twitter.com</a>

Fixed with c3b5f1e which will be in the next release.

ded commented

yeeeeeeeah. thanks matt