|
By Eddy R.
9-23-99
Have you ever had the need to remove unwanted HTML
tags from web documents? If so, how did you do it? Did you search
the document(s) for unwanted tags line by line, or did you just
forget about it since it would take too long to search for those
tags?
Getting rid of unwanted HTML in one document isn't
that bad, the most it could take you is a few minutes but getting
rid of unwanted HTML in 500 or more documents is a different story,
searching for one tag alone could take you hours!
Well, this is where Dreamweaver comes to the rescue.
DW (Dreamweaver) has a neat feature that makes searching and removing
unwanted HTML tags a breeze! Here is how it works.
Let's say that you are trying to get rid of the <small>
tag in your entire web site which oh by the way, consists of 500
documents. All you have to do to remove such tag is:
-
Launch DW and select the document or site you
wish to work on.
-
Go to Edit menu and select the Replace option.
-
Once the Replace window
pops up, select Current Site from the Find In box.
-
Select Tag from the Find What box along with the
HTML tag you want to remove (in our example we are trying to
remove the <small> tag).
-
Select Strip Tag from the Action box and select
Replace All.
That's it! This command will get rid of the <small>
tags in all the documents in your site.
Note: If you are using Templates, make sure you run
this procedure on the Templates first and then on the entire site.
Failure to do this may not allow DW - Search and Replace command
to work as intended. As always, make a backup of your entire site
before you make any site wide changes.
|