campinam
asked on
Removing GENERATOR meta tag in EW - invalid code
I load an old site in EW. It has a large number of pages. It was initially developed in FP.
Now I'm trying to remove the tag
<meta name="GENERATOR" content="Microsoft FrontPage 12.0">
using Find and Replace > HTML Tags tab, where I set the Replace action to "Remove tag". Then I press the Replace button, and get this error:
"A replacement would result in invalid HTML and cannot be completed" - why invalid?
Current code looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>title1</title>
<meta name="GENERATOR" content="Microsoft FrontPage 12.0">
<meta name="ProgId" content="FrontPage.Editor. Document">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Script -Type" content="text/javascript">
</head>
Now I'm trying to remove the tag
<meta name="GENERATOR" content="Microsoft FrontPage 12.0">
using Find and Replace > HTML Tags tab, where I set the Replace action to "Remove tag". Then I press the Replace button, and get this error:
"A replacement would result in invalid HTML and cannot be completed" - why invalid?
Current code looks like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>title1</title>
<meta name="GENERATOR" content="Microsoft FrontPage 12.0">
<meta name="ProgId" content="FrontPage.Editor.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Script
</head>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Figured that... remove action should be "Remove tag and contents". Thanks, Tina.
ASKER
<meta name="GENERATOR" content="Microsoft FrontPage 12.0"> using...
1. Find and Replace > HTML Tags tab
2. tag is meta
3. rule "with attribute name=GENERATOR"
4. replace action is "Remove tag"
This tag has no text... What am I doing wrong?