otherinbox/muddle — pull request #3 by kerinin (2012-03-25 15:40:01+00:00)
Title: This implements the bulk of the parsing work, although it'll need some polishing

This implements 4 filters
* `boilerplate_attributes` adds HTML attributes to things like tables and anchors
* `boilerplate_css` adds a style declaration which should be inlined with `premailer`
* `boilerplate_style_element` adds a style declaration which will not be inlined (after `premailer` executes)
* `premailer` calls the premailer gem

It also blocks out a Logger, but I'm not sure if it's working.

This needs more work, and the Rails integration tests are failing for some reason, but I want to get this up so we're not too far out of sync.

We should talk about how we want to handle validating the HTML - I was thinking we could build an XSD as a subset of XHTML Strict with all the naughty tags removed. That would get us both HTML validation and email best-practices notifications, but there may be a better (easier) way to go about doing that.