Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

tool to convert CSS html to plain HTML?

 
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  Best CMS?  
Author Message
Proteus

External


Since: Sep 25, 2005
Posts: 8



(Msg. 1) Posted: Fri Dec 09, 2005 11:53 am
Post subject: tool to convert CSS html to plain HTML?
Archived from groups: alt>www>webmaster (more info?)

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.

 >> Stay informed about: tool to convert CSS html to plain HTML? 
Back to top
Login to vote
spamblocked1

External


Since: Sep 19, 2003
Posts: 3499



(Msg. 2) Posted: Fri Dec 09, 2005 1:55 pm
Post subject: Re: tool to convert CSS html to plain HTML? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Writing in news:alt.www.webmaster
From the safety of the cafeteria
Proteus <proteus.DeleteThis@uselessemail.net> said:

> 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.

The styles are embeded in the markup?

Any editor that supports regex or another wild-card paradigm

s/style="[...]"//

--
William Tasso

Save the drama
for your Mama.

 >> Stay informed about: tool to convert CSS html to plain HTML? 
Back to top
Login to vote
noxwebmasterx4

External


Since: Sep 21, 2004
Posts: 170



(Msg. 3) Posted: Fri Dec 09, 2005 3:55 pm
Post subject: Re: tool to convert CSS html to plain HTML? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Need help with old HTML - Hiya, Without using CSS how do I: 1) Set the color of the <hr> bar? 2) Set the default font for the document in the body tag? 3) Set the default font size for the document? Hard to find anything on the net about using the depricated tags.....

I know HTML, now what? - What should I learn after HTML, for authoring webpages? I reall feel out of the loop regarding webpage authoring-- should I now learn CSS, DHTML, XHTML, XML??? I am an online college teacher and want to get up to date on the current language for webpage...

xml to html - Hi I am trying to insert an XML feed in to my website how do I get the code to convert to html instead of raw xml on the results page ???

.psd to .html, .php etc. ? - How do you take a .psd website image and make it into a webpage after you edited it? I know this should seem easy and it is but I was wondering if there was an easier way I am missing? I do not use Photoshop as PSP8 and PSP9 both handle .psd files just....

html optimisation - can anyone recommend a tool that works well alongside dreamweaver to optimise web pages? i hear you can trim your pages down by 20% on average. any pros/cons? thanks
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]