0

I hope, I can write tweet like this:

some text Lorem ipsum #myhastag Duis efficitur risus et augue tempus tristique.

so the format is : text #hashtag text.

so in html I wrote,

<a href="https://twitter.com/intent/tweet?text=Lorem ipsum&button_hashtag=myhashtag&text= Duis efficitur risus et augue tempus tristique." target="_blank" class="twitter-hashtag-button" data-show-count="false">SHARE</a>

But, the result just

Lorem ipsum #myhashtag

I have searched on https://dev.twitter.com/web/tweet-button and youtube video tutorial but still no idea.

I hope someone can help me, write tweet with format

text #hashtag text.
Rahul Gopi
  • 414
  • 1
  • 16
  • 31
user3620028
  • 9
  • 1
  • 4

1 Answers1

0

You need to Percent Encode the hash symbol as %23

Try this:

https://twitter.com/intent/tweet?text=Text%20%23hashtag%20more%20text

Terence Eden
  • 14,034
  • 3
  • 48
  • 89