title: Issue with php mail, anchor tag, & single quote
body: <p>I am trying to send an email using php mail, however, when using an anchor tag, the link does not go past the single quote (') if it is present in the filename.</p>
  
  <p>Here is the line of code where the trouble arises:</p>
  
  <pre><code>$message .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;View LOA:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;&lt;a     href='http://myurl.com/loa/" . $myloa . "'&gt;" . strip_tags($myloa) . "&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;";
  </code></pre>
  
  <p>($myloa is pulled from my database. I have multiple files uploaded on my server and save the file names in my DB.)</p>
  
  <p>In the email, $myloa can be read as, for example, Alex's LOA.pdf</p>
  
  <p>However, if trying to click it (since it is anchored), the link only goes up to Alex. So the link looks like this: <a href="http://myurl.com/loa/Alex" rel="nofollow">http://myurl.com/loa/Alex</a> instead of <a href="http://myurl.com/loa/Alex" rel="nofollow">http://myurl.com/loa/Alex</a>'s LOA.pdf</p>
  
  <p>How can I fix this? Thanks.</p>
  
  <p>Here is my full code:</p>
  
  <pre><code>$emailloa = $_POST['emailloa'];
  
  
  
  $to .= "" . strip_tags($emailloa) . "";
  
  
  $subject = "The " . strip_tags($name) . " LOA";
  
  
  $message = '&lt;html&gt;&lt;body&gt;';
  $message .= '&lt;table rules="all" style="border-color: #666;" cellpadding="10"&gt;';
  $message .= "&lt;tr style='background: #eee;'&gt;&lt;td&gt;&lt;strong&gt;Sent by:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;" .     strip_tags($_SESSION['user']['first']) . " " . strip_tags($_SESSION['user']['last']) . "    &lt;/td&gt;&lt;/tr&gt;";
  $message .= "&lt;tr&gt;&lt;td&gt;&lt;strong&gt;View LOA:&lt;/strong&gt; &lt;/td&gt;&lt;td&gt;&lt;a     href='http://myurl.com/loa/" . $myloa . "'&gt;" . strip_tags($myloa) . "&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;";
  $message .= "&lt;/table&gt;";
  $message .= "&lt;/body&gt;&lt;/html&gt;";
  
  
  $headers  = 'MIME-Version: 1.0' . "\r\n";
  $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
  </code></pre>