title: Algorithm / API for converting HTML to email friendly HTML (for newsletters)
body: <p>I'm sure this is a very old question, but I could not find a straight answer</p>
  
  <p>I'm looking for a works-mostly algorithm to take regular HTML content, and make it email client friendly. </p>
  
  <p>I can rewrite any nice DIV layout to table layout, this is OK, but is there anything that will do it for me? </p>
  
  <p>Here are my concerns</p>
  
  <ul>
  <li>Overflow content - gmail etc ignores any overflow:hidden, the algorithm should address it</li>
  <li>Clipped images - same as above, but here the solution will probably be server side clipping</li>
  <li>CSS / Script / non standard tags - the algorithm should remove but keep the general look and feel</li>
  <li>DIV layout to table layout, I heard it's a must, but I'm sure it's not an easy task to automate</li>
  </ul>
  
  <p>There are many HTML to PDF converters, but I could not find a good HTML to "HTEMAIL" converter</p>
  
  <p>Is there any standard or proposed standard for HTML for email clients? or is it an open jungle out there?</p>