title: Adding onclick and window.location.href
body: <p>I'm sending a html email from php. The body is wrapped in double quotes (<code>"</code>). How do I add a button onclick event and a link within the double quotes?</p>
  
  <pre><code>$body = "&lt;BODY&gt;
      &lt;button type='button' onclick='window.location.href='www.example.com/page.html?id=".$id."''&gt;
  &lt;/BODY&gt;";
  </code></pre>
  
  <p>How do I do <code>onclick='window.location.href='''</code></p>