Forum Moderators: phranque

Message Too Old, No Replies

Style Tag Stripping

Removing In-line Style Tags

         

Web_Player

6:48 pm on Jun 18, 2003 (gmt 0)

10+ Year Member



I am looking for a way, a program, or some quick way to remove most or all in-line style information from a bunch of web pages. The site is an older one and I want to update it using external CSS but removing each <font> </font> tag will take a lot of time.

Is there a tool that would do this? I'm sure some of you must have had to do this. I thought of copying and pasting the text into notepad to see if that will leave me only text but the ideal program or tool would allow me to designate which style tags I want to remove.

Thanks

oilman

9:04 pm on Jun 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



HTML Tidy [w3.org] should do the trick for you.

grahamstewart

11:53 pm on Jun 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use a decent text editor (like TextPad) that allows regex search and replace over multiple files..

Replace <font [^>]*> with nothing.
Replace </font> with nothing.

Job done. :)

Web_Player

1:31 am on Jun 19, 2003 (gmt 0)

10+ Year Member



Thanks Oilman but I'm afraid HTML Tidy is too DOSie for my simple mind.

I will look at grahamstewart's method in notepad and maybe Word in text only mode.

I guess somethings are not as easy as I would like or I have an aversion to hard work.

grahamstewart

6:26 am on Jun 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Word and Notepad...? No no... I said a DECENT text editor. :)

Do yourself a favour and download textpad or something similar.