It's very useful for email layout.
You can add css styles in header <style>
tag and after apply this script to get the HTML with inline styles.
// remove duplicates from array
// http://www.etnassoft.com/2011/06/24/array-unique-eliminar-valores-duplicados-de-un-array-en-javascript/
Array.prototype.unique = function(a){
return function(){return this.filter(a)}
}(function(a,b,c){return c.indexOf(a,b+1)<0});