Solved

Removing GENERATOR meta tag in EW - invalid code

Posted on 2012-04-03
3
638 Views
Last Modified: 2013-11-19
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>
0
Comment
Question by:campinam
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Tina Clarke earned 500 total points
ID: 37803949
sounds like you might be just removing a tag not the text...

use the Replace tab not the HTML Tags tab

Put in the find your meta tag and the replace leave it blank ... test it on the current page then use the replace all.

You should always back up your site before doing anything major.

See the tutorial I wrote as a starter for migrating on here.

http://www.experts-exchange.com/Web_Development/Software/Expression_Web/A_2840-Migrating-from-FrontPage-to-Expression-Web.html

Tina
0
 

Author Comment

by:campinam
ID: 37803975
I'm trying to remove the tag
<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?
0
 

Author Comment

by:campinam
ID: 37804075
Figured that... remove action should be  "Remove tag and contents". Thanks, Tina.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

An enjoyable and seamless user experience can go a long way on an eCommerce site. While a cohesive layout and engaging copy play roles in creating a positive user experience, some sites neglect aspects that seem marginal but in actuality prove very …
Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
The purpose of this video is to demonstrate how to Import and export files in WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Click on Too…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now