473,804 Members | 2,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Shud not search HTML tags

Hello Group, i am stuck up to a problem, i made a search program on my web
site and highlighting the searched phrase on HTML pages . well the problem
is when user searches word "table" the Page also displayes highlighted
"<table>" along with other page contents is there any way i can skip
highlighting html, if i remove HTML tags the page is not displayed properly
as i amd dumping HTML source from a table field.So finally my concern is on
page there should be HTML tags but should not be Highlighted.
Any suggestion would be highly appriciated

From
Andy
Nov 18 '05 #1
3 1100
Use Regular Expressions.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"anand" <an****@armour. com> wrote in message
news:uF******** ******@TK2MSFTN GP12.phx.gbl...
Hello Group, i am stuck up to a problem, i made a search program on my web
site and highlighting the searched phrase on HTML pages . well the problem
is when user searches word "table" the Page also displayes highlighted
"<table>" along with other page contents is there any way i can skip
highlighting html, if i remove HTML tags the page is not displayed properly as i amd dumping HTML source from a table field.So finally my concern is on page there should be HTML tags but should not be Highlighted.
Any suggestion would be highly appriciated

From
Andy

Nov 18 '05 #2
yah i tried that but couldn'e succeed, any suggestions...?

Anand
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:uy******** ******@TK2MSFTN GP09.phx.gbl...
Use Regular Expressions.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"anand" <an****@armour. com> wrote in message
news:uF******** ******@TK2MSFTN GP12.phx.gbl...
Hello Group, i am stuck up to a problem, i made a search program on my web site and highlighting the searched phrase on HTML pages . well the problem is when user searches word "table" the Page also displayes highlighted
"<table>" along with other page contents is there any way i can skip
highlighting html, if i remove HTML tags the page is not displayed

properly
as i amd dumping HTML source from a table field.So finally my concern is

on
page there should be HTML tags but should not be Highlighted.
Any suggestion would be highly appriciated

From
Andy


Nov 18 '05 #3
I can suggest a great free tool for creating and testing Regular
Expressions:

http://www.weitz.de/regex-coach/

The Microsoft .Net SDK has a great section on Regular Expressions as well:

http://www.microsoft.com/downloads/d...displaylang=en

Using both, you can't miss!

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"anand" <an****@armour. com> wrote in message
news:ek******** ******@TK2MSFTN GP10.phx.gbl...
yah i tried that but couldn'e succeed, any suggestions...?

Anand
"Kevin Spencer" <ks******@takem pis.com> wrote in message
news:uy******** ******@TK2MSFTN GP09.phx.gbl...
Use Regular Expressions.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

"anand" <an****@armour. com> wrote in message
news:uF******** ******@TK2MSFTN GP12.phx.gbl...
Hello Group, i am stuck up to a problem, i made a search program on my web site and highlighting the searched phrase on HTML pages . well the problem is when user searches word "table" the Page also displayes highlighted
"<table>" along with other page contents is there any way i can skip
highlighting html, if i remove HTML tags the page is not displayed

properly
as i amd dumping HTML source from a table field.So finally my concern
is on
page there should be HTML tags but should not be Highlighted.
Any suggestion would be highly appriciated

From
Andy



Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1905
by: KC Wong | last post by:
I am making an In-Site Search for a website, it is a PHP page where user can enter the keyword(s), and then the page will read through all other html/php pages to find that keyword(s). My problem is how to avoid searching the tags? For example, when user typed in "$PHPSELF", how to avoid searching the code within <?php ?> tag? Also, how to avoid searching the attributes in other tags? Assume that the server doesn't have MYSQL installed,...
1
8735
by: Les Juby | last post by:
A year or two back I needed a search script to scan thru HTML files on a client site. Usual sorta thing. A quick search turned up a neat script that provided great search results. It was fast, returned the hyperlinked page title, filename, and the body txt (30 preceding and following words) in context with the search word highlighted. Excellent.! See it working at: http://www.ipt.co.za Just search for "firearm"
11
4240
by: Petre Huile | last post by:
I have designed a site for a client, but they have hired an internet marketing person to incrase their search engine ranking and traffic. He wants to put extra-large fonts on every page which will make the design looks a bit rediculous. He also said that the big text cannot be hidden. I am just trying to find a compromise. Here are the questions: (1) Is it true that a page with an <H1> tag and very big font size will make a search...
1
3060
by: Dave Townsend | last post by:
Hi, Can anybody help me with the following piece of code? The purpose behind the code is to parse HTML files, strip out the tags and return the text between tags. This is part of a larger application which will perform "searches" for text values in a directory of html files, trying to match only the non-tagged text in the documents.
2
1793
by: laredotornado | last post by:
Hello, How effective are META tags when used as tools to classify a page's content for a search engine? The common one is <META NAME="Keywords" CONTENT="tropical fish,fish,tetras,guppies"> The big question is how much do these matter with Google? The next question is, if they matter for any search engine, what is the limit of keywords you can enclose within the "CONTENT" attribute?
16
2523
by: Edward | last post by:
Hi All, I am having huge problems with a very simple dotnet framework web page (www.gbab.net/ztest3.aspx) , it does NOT render correctly under Apple's Safari. The DIV's do not align amd float as they should, and do in Dotnet. The page is really, really simple, and it has a CSS and with NO masterpage. I have tried using the following as recommendations made earlier in this Newsgroup:-
5
2156
by: foolproofplan | last post by:
Hey everyone. I am running into a problem with unique ids that need to be compared in two xml files. The actual object name is represented with its unique id later in the xml file, so i need to do a search on an id, find its name, and then replace the original id with the name instead. If this doesn't make much sense, here is an example: <DBViewer template_id=" .... /> <Fruits type="ObjectLink" >:1170775272:459887139:</Fruits>...
2
1801
by: srivatsav143 | last post by:
Hi All, Can any one tell me how can I search an html file for tags and sort the by usage. One more interesting thing is that I have prepared a file with all valid html tags. How can I compare the tags in the input file with this file and say if the tags are valid? Any Ideas?
4
1872
by: King Coffee | last post by:
Hi, If I use master pages with META tags in the head section... can I still use META tag on the child pages (child pages reference the master page). I ask this question because I heard the more pages with META tags containing search engine key words, the higher the search engine ranking. Thanks, King
0
10353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10356
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9176
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7643
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5675
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4314
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3003
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.