W3C home > Mailing lists > Public > html-tidy@w3.org > April to June 2006

HTML email tidy?

From: Simon Grabowski <simon.grabowski@gmail.com>
Date: Thu, 4 May 2006 23:40:15 +0100
Message-ID: <5248160605041540w6f3d8991mc6c652506bc7b60b@mail.gmail.com>
To: html-tidy@w3.org

Has anyone successfully used tidy to clean up HTML
email messages?

Considering the importance of email deliverability
and proper rendering in various web-based email
clients and software programs, it is now more
important than ever to ensure that the HTML is
properly formatted.

Using our service, GetResponse, our users are
sending HTML-enhanced email newsletters,
promotions and autoresponder messages. Sadly,
the vast majority of them doesn't validate the
HTML code.

For rendering reasons a properly-formatted HTML
email message differs from a regular webpage, i.e.:
* no <html> </html>, <head> </head>, <body> </body> etc.,
* HTML email content is composed of what would
be located between <body> and </body> in a regular
webpage,
* no <javascript ...>,
* no <head>-embedded or external file CSS styles,
* few external elements (i.e. images), or none at all
(blocked by most clients these days due to security issues)/

Considering the above, validating an HTML email
message with tidy represents a challenge. One
would have to temporarily add the missing tags
just for validation, then strip them down again
before the email marketing campaign is sent.

Is it possible to automate this and configure tidy to
properly validate HTML email messages, or would it
require a unique approach outside of tidy's scope
(a younger sibling, `HTML email tidy`? ;)

Simon Grabowski
http://www.getresponse.com/
Received on Thursday, 4 May 2006 22:40:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:56 GMT