title: "&" character in facebook sharer url
body: <p>My site has urls like  </p>
  
  <pre><code>$shareurl = http://www.mysite.com/?view=main&amp;title=here-is-some-title  
  </code></pre>
  
  <p>So if i put this url in facebook and twitter sharer links appear like below</p>
  
  <p><strong>facebook sharer url:</strong>  </p>
  
  <pre><code>&lt;a target="_blank" href="https://www.facebook.com/dialog/feed?app_id=MY_APP_ID&amp;link=&lt;?php echo $shareurl;?&gt;&amp;picture=Picture.jpg&amp;name=this is name&amp;caption=this is caption&amp;description=this is despcription.&amp;redirect_uri=&lt;?php echo APP_BASE_URL; ?&gt;""&gt; Share on Facebook &lt;/a&gt;
  </code></pre>
  
  <p><code>&amp;</code> character into <code>$sharerurl</code> splits the facebook sharer url. The situation is same in Twitter.<br>
  How can i avoid from this condition by simplest way?</p>