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
* 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
Received on Thursday, 4 May 2006 22:40:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:56 UTC