473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 1086
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**************@TK2MSFTNGP12.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******@takempis.com> wrote in message
news:uy**************@TK2MSFTNGP09.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**************@TK2MSFTNGP12.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**************@TK2MSFTNGP10.phx.gbl...
yah i tried that but couldn'e succeed, any suggestions...?

Anand
"Kevin Spencer" <ks******@takempis.com> wrote in message
news:uy**************@TK2MSFTNGP09.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**************@TK2MSFTNGP12.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
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...
1
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,...
11
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...
1
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...
2
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"> ...
16
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...
5
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...
2
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...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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...

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.