title: Return string of html with an embedded php echo statement
body: <p>I'm attempting to return a string of html with an some php code within the html and I'm experiencing a bit of difficulty doing so. Example below:</p>
  
  <pre><code>return '//bunch of html here
  &lt;div id="test"&gt;
   &lt;?php 
     if (isset($_COOKIE[\"cannycookie\"]))
     {
        echo "&lt;a class=\"reply\" href=\"#\" id=\"deletelink-'.$d['id'].'\"&gt;Delete&lt;/a&gt;";
     }
   ?&gt;
  &lt;/div&gt;';
  </code></pre>
  
  <p>The html before this all returns perfectly, but when it gets to the <code>"&gt;Delete&lt;/a&gt;";}?&gt;</code> something crashes and burns. 
  The html renders in the browser like so: <code>Delete\n"; } ?&gt;</code> with the whole php source being exposed. I've tried reading up other posts and information on quotes in statements as such, and I've tried as much as I can, yet to no avail. Any ideers? Thanks!</p>