How To Remove HTML Tags From A String

The code (regular expression) below will remove HTML tags that are sent in a string.

share on facebook share on twitter share on google share on digg share on linked in share on stumble upon

The code (regular expression) below will remove HTML tags that are sent in a string. This example is in VB.NET

Function trimme(ByVal thetext As String) As String

     Return Regex.Replace(thetext, "<.*?>", String.Empty)

End Function

How To Remove HTML Tags From A String

Posted in Coding by on 05 January 2014

Related Posts

What Are CSS Shapes?
WHAT ARE CSS SHAPES?
Erm...What is CAPTCHA?
ERM...WHAT IS CAPTCHA?
How To Create A Link To A Phone Number In HTML
HOW TO CREATE A LINK TO A PHONE NUMBER IN HTML
Special HTML Characters
SPECIAL HTML CHARACTERS
Best Practice - Caching Files Using ASP Dot Net
BEST PRACTICE - CACHING FILES USING ASP DOT NET
Adding A Canonical Tag To An ASP.NET page
ADDING A CANONICAL TAG TO AN ASP.NET PAGE

Fresh From Twitter...

Join the conversation on Twitter @pebbleltd
for all the latest news on web design, ecommerce and search engine marketing with one of the leading web design agencies in the uk

  • Pebble (Peterborough)

    26 Tesla Court
    Innovation Way
    Peterborough
    PE2 6FL

    Tel: 01733 902070

    View On Map

  • Pebble (Kings Langley)

    The Old Chapel
    69 Primrose Hill
    Kings Langley
    WD4 8HX

    Tel: 01442 505878

    View On Map

Pebble Ltd is registered in England & Wales: 06257777 and registered for VAT No: 993 3500 06

Pebble Ltd is Data Protection registered ZA122783

How To Remove HTML Tags From A String How To Remove HTML Tags From A String The code (regular expression) below will remove HTML tags that are sent in a string.

The code (regular expression) below will remove HTML tags that are sent in a string. This example is in VB.NET

Function trimme(ByVal thetext As String) As String

     Return Regex.Replace(thetext, "<.*?>", String.Empty)

End Function

Contact Pebble

  • Pebble Ltd (Peterborough)
    26 Tesla Court
    Innovation Way
    Peterborough
    PE2 6FL
    Tel: 01733 902070
  • Pebble Ltd (Kings Langley)
    The Old Chapel
    69 Primrose Hill
    Kings Langley
    WD4 8HX
    Tel: 01442 505878