473,387 Members | 1,789 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,387 software developers and data experts.

Is there Strip HTML Tag function in VB.net?

Hi,

is there any StripHTMLTag function in VB.Net?
i would like to remove all html tag in a string.

Thanks.
Nov 20 '05 #1
6 18071
"Shelby" <sh****@itsupport.com.sg> schrieb:
is there any StripHTMLTag function in VB.Net?
i would like to remove all html tag in a string.


<URL:http://www.google.de/groups?selm=ebXm3efoCHA.1976%40TK2MSFTNGP10>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2
Hi Shelby,

You mean that you want from every tag the Text property.

That should in my opinion go with Mshtml when you loop through all the tags.

The result will be awfull probably

Cor
Nov 20 '05 #3
Use a RegEx

--

OHM ( Terry Burns )
. . . One-Handed-Man . . .

Time flies when you don't know what you're doing

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl...
"Shelby" <sh****@itsupport.com.sg> schrieb:
is there any StripHTMLTag function in VB.Net?
i would like to remove all html tag in a string.


<URL:http://www.google.de/groups?selm=ebXm3efoCHA.1976%40TK2MSFTNGP10>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #4
* "One Handed Man \( OHM - Terry Burns \)" <news.microsoft.com> scripsit:
Use a RegEx


/Why?/

;-)

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #5
a good example using regular expression
http://www.4guysfromrolla.com/webtech/042501-1.shtml

--
Hope this helps,
Zeeshan Mustafa, MCSD

"Shelby" <sh****@itsupport.com.sg> wrote in message
news:u5**************@TK2MSFTNGP10.phx.gbl...
Hi,

is there any StripHTMLTag function in VB.Net?
i would like to remove all html tag in a string.

Thanks.

Nov 20 '05 #6
Hi Mustafa,
thanks for that article. It really helps.

Cheers
Shelby
"M. Zeeshan Mustafa" <ze*****@no-spm.please.zeeshan.net> wrote in message
news:e3**************@TK2MSFTNGP09.phx.gbl...
a good example using regular expression
http://www.4guysfromrolla.com/webtech/042501-1.shtml

--
Hope this helps,
Zeeshan Mustafa, MCSD

"Shelby" <sh****@itsupport.com.sg> wrote in message
news:u5**************@TK2MSFTNGP10.phx.gbl...
Hi,

is there any StripHTMLTag function in VB.Net?
i would like to remove all html tag in a string.

Thanks.


Nov 20 '05 #7

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

Similar topics

9
by: Julie Miles | last post by:
I need to pull several tables of data from Excel into a web page, but when I use Excel's "Save as web page" function, I get an enormous file containing a massive amount of css formatting. I'd like...
3
by: alex.mcshane | last post by:
Hi - I would be grateful for any advice on the following. Within DB2 for OS/390, the STRIP Scaler Function is available. Its function is, for example, to remove leading zeros from a string. ...
3
by: Michal A. Valasek | last post by:
Hello, I want to transform text with HTML markup to plain text. Is there some simple way how to do it? I can surely write my own function, which would simply strip everything with < and >....
2
by: Daniel M. Hendricks | last post by:
I'm looking for a function/regex in C# to strip unwanted HTML tags from comments posted to my web site. Previously, it was written in PHP and I used this function to strip unwanted tags: ...
4
by: Steve | last post by:
Hi, I'm a complete PHP n00b slowly finding my way around I'm using the following function that I found on php.net to strip out html and return only the text. It works well except for when you...
6
by: eight02645999 | last post by:
hi can someone explain strip() for these : 'example' when i did this: 'abcd,words.words'
7
by: code937 | last post by:
Hey Guys, First time here, i usually resort to google (but for the first time in 3 years he (or she) cant help me) ... Im making some software that generates html reports which can be viewed...
6
by: george | last post by:
hello, which is the best way to strip jscript/vbscript from user input? Is there any module I could reuse? thanks in advance george P.S. the solution must allow users to enter html code.
6
by: Christoph Zwerschke | last post by:
In Python programs, you will quite frequently find code like the following for removing a certain prefix from a string: if url.startswith('http://'): url = url Similarly for stripping...
4
by: Poppy | last post by:
I'm using versions 2.5.2 and 2.5.1 of python and have encountered a potential bug. Not sure if I'm misunderstanding the usage of the strip function but here's my example. var = "detail.xml"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.