title: Using html with style tags in php code
body: <p>I have been given the following as a template for use in an email. I am using phpmailer to mail it out, but am having a problem with the way style tags begin and end as they are conflicting with the php. If I go through thier template, I could move all the styles into a seporate style sheet or use classes and put the styles at the top of the page, but I dont want to do this unless I really have to.</p>
  
  <p>Below is a generic example of what is going wrong with the code. The font names are wrapped in  "s so the opening and closing tags of the style are 's , these 's are clashing with the opening and closing tags of php. I cant seem to find a way round it though as if I put,
  style=""font-name","another-font"" this wont work, if I use 's at all php is then screwed up.</p>
  
  <p>What is happening is in php mailer the form contents are declared as </p>
  
  <pre><code>$body = '&lt;span style='font-size: 13.5pt;font-family:"Georgia","serif";color:white'&gt;some content&lt;/span&gt;&lt;/html&gt;';
  </code></pre>