title: Escaping & for display in mail client (mailto link)
body: <p>I have a JavaScript function like so:</p>
  
  <pre><code>var strBody = encodeURI(window.location.href);
  var strSubject = encodeURI(document.title);
  var mailto_link = "mailto:?subject=" + encodeURI(strSubject) + "&amp;body=" + strBody;
  </code></pre>
  
  <p>This code is executed on a hyperlink's onclick event, and opens the mail client (mailto://). However, the title of the page has several &amp; symbols, but the title is only picked up until the first &amp;. The url is always picked up.</p>
  
  <p>What is the correct JavasSript to escape the &amp; and display it in the mail client's subject line?</p>