Proteus wrote:
> I am looking for a tool to convert html pages I have that contain CSS code
> in the html to the more legacy style plainer html that did not use CSS
> style codes and such. Open Source preferred, preferably for linux, but I
> could go with MS-Windows XP tool if needed. Anybody know of a tool like
> this?
>
> I have HTML Tidy, but I can not see where it can remove CSS, only that it
> can add CSS.
>
> Any help appreciated, thank you.
>
For inline CSS:
perl -i.bak -p -e 's/style *= *"[^"]*"//gi' x.html
This is liable to the occasional error, but will probably be good
enough if you don't have too many pages to proof.
CSS in header blocks should be easy enough to edit out by hand.
>> Stay informed about: tool to convert CSS html to plain HTML?