If someone sends you an “HTML” mail from Outlook, even Tidy will run away screaming unless you strip out some of the gunk manually before trying to fix it.
If it’s Quoted-Printable, you have a bit more work to do first [maybe this (web service) or this (sed script).], though you probably have even more work to do if the original document used a non-Western encoding. Not tested.
sed -e "s/\<o\:p\>/\<p\>/g" | sed -e "s/\<\/o\:p\>/\<\/p\>/g" | /usr/local/bin/tidy -c
broken into two
sed invocations for
readability’s (hah!) sake…
Of course, it’s all very brute-force, but usually good enough for government work.
The Great Movie Posters:
HOT STEEL BETWEEN THEIR LEGS!
— The Cycle Savages (1969)
The Hand that Rocks the Cradle… Has no Flesh on It!
— Who Slew Auntie Roo? (1971)
TWO GREAT BLOOD HORRORS TO RIP OUT YOUR GUTS!
— I Eat Your Skin & I Drink Your Blood (1971 double-bill)
They Went In People and Came Out Hamburger!
— The Corpse Grinders (1971)