Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Removing GENERATOR meta tag in EW - invalid code

Posted on 2012-04-03
3
Medium Priority
?
688 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Tina Clarke earned 2000 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

609 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