iEntry 10th Anniversary RSS Newsletter Advertising
Visit Twellow.com
Text: Decrease Font Size Increase Font Size | Print Print Article | Share: Delicious Digg StumbleUpon Post to Twitter Post to Facebook
Friday, December 1, 2006

ASP.NET: Remove HTML Tags From a String

12 Comments

youtube

thanks good post. i am forward it... Saglikli Yasam

сексвконтакте

сексвконтакте секс в sexvkontakte контакте

Thx

Thank you for the article ;)

Sylvain

Vente vtt

ASP.NET: Remove HTML Tags From a String

Very Good job Mads :)

Thanks alot

Thanks alot

Hi. I'm interested in a

Hi. I'm interested in a subject of this site. I want to say thanks to the author.
! THANKS ! If you want check mine: informacje or ranking kredytów
Best regards!

Have a look on my own

Have a look on my own implementation of PHP's strip_tags function here -> http://www.codeproject.com/KB/MCMS/htmlTagStripper.aspx 

Function

Function sendOutputWithoutHTMLTags(ByVal inputString As String) Dim newString As String = "" Dim stringCharArray As Char() = inputString.ToCharArray Dim strLength As Integer = inputString.Length For n As Integer = 0 To (strLength - 1) If stringCharArray(n) = "<" Then While stringCharArray(n) <> ">" n = n + 1 End While n = n + 1 End If newString += stringCharArray(n) Next Return newString End Function

Remove Particular tag

To remove only particular html tag

see following

http://urenjoy.blogspot.com/2008/10/remove-html-tags-from-string.html

dd

dd

Good job Mads

Good job Mads

ASP.NET: Remove HTML Tags From a String

i dont  know if you realised but using your HTML remover also makes the whole text lowercase, i can see why you have used it, to remove uppercase and lowercase < br >'s  but it outputs the text as lowercase...

Just a note..

Kind Regards,

Derek Hyams

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 11 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
SEARCH
Popular WPN Business Resources












Subscribe to WebProNews


Send me relevant info