title: How do you include hashtags within Twitter share link text?
body: <p>I'm writing a site with a custom tweet button that uses the <strong>www.twitter.com/share</strong> function, however the problem I am having is including hash '#' characters within the tweet text.</p>
  
  <p>For example:<br/></p>
  
  <p><a href="http://www.twitter.com/share?url=www.example.com&amp;text=I+am+eating+#branstonpickel+right+now" rel="noreferrer">http://www.twitter.com/share?url=www.example.com&amp;text=I+am+eating+#branstonpickel+right+now</a>
  <br/>The tweet text comes out as '<strong>I am eating</strong>' and omits the hash and everything after.</p>
  
  <p>I had a quick look on the Twitter forums and learnt the hash '#' character cannot be part of the share url.<br/> On <a href="https://dev.twitter.com/discussions/512#comment-877" rel="noreferrer">https://dev.twitter.com/discussions/512#comment-877</a> it was said that:</p>
  
  <blockquote>
    <p>Hashes are special characters in the URL (they identify document fragments) so they, and anything following, does not get sent the server.</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>you need to URLEncode it, so use %23</p>
  </blockquote>
  
  <p>When I tried the 2nd point in my test link:<br/></p>
  
  <p>www.twitter.com/share?url=www.example.com&amp;text=I+am+eating+%23branstonpickel+right+now
  <br/>
  The tweet text came out as '<strong>I am eating %23branstonpickel right now</strong>' literally including %23 instead of converting it to a hash.</p>
  
  <p>Sorry for the waffely question, but does anyone know what it is I'm doing wrong?<br/>
  Any feedback would be greatly appreciated :)</p>