Closed framelita closed 2 years ago
Nice
Hey, I found myself scratching my head with this and found the answer on one of the closed issues.
Use this:
twttr.txt.autoLink('foo test @foo', { usernameIncludeSymbol: true } );
Thanks @geekysrm!
Thanks @geekysrm!
Describe the bug When running autoLink, mention's @ sign is outside the anchor tag
To Reproduce
twitter.autoLink('@TwitterSpaces')
Expected behavior Currently it's returning:
@<a class="tweet-url username" href="https://twitter.com/TwitterSpaces" data-screen-name="TwitterSpaces" rel="nofollow">TwitterSpaces</a>
When it's supposed to be:<a class="tweet-url username" href="https://twitter.com/TwitterSpaces" data-screen-name="TwitterSpaces" rel="nofollow">@TwitterSpaces</a>
Example on Twitter page:
![image](https://user-images.githubusercontent.com/5145692/124924634-3b1ff680-e02e-11eb-9f29-945668e5c518.png)