home page latest news web development curriculum vitae scripts contact me

  • C# (Microsoft .NET)
  • JAVA
  • Dynamic HTML
  • PHP & MySQL
  • ASP.NET - C# & VB.NET
  • Perl & CGI
  • C | C++
  • Vector Markup Language
  • SMIL
  • Assembler
  • Databases
  • Wap Development
  • Web site promotion
  • Web Marketing

NETART MEDIA is one of the fast growing European IT companies striving to offer high quality web and e-commerce products, like for example:

Blog System v1.5

Real Estate Portal v3.0

Jobs Portal v1.3

Car Portal v2.0

PHP Mall v2.0


How to strip HTML tags from a string with a simple regular expression using JavaScript?

(DHTML free example written by Anton Zamov.)


How to strip HTML tags from a string with a simple regular expression using JavaScript?

<HTML>
<HEAD>
<TITLE> Regular Expressions: stripping HTML tags </TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript">
var htstring = '<p align="Left"><b>Hello</b> <I>World</I></p>';
var stripped = htstring.replace(/(<([^>]+)>)/ig,"");

with (document) {
write ('Original string:' + htstring + '<br>');
write ('Stripped string:<br><br>' + stripped);
}
</SCRIPT>
</BODY>
</HTML>


If this example was useful for you, please support my company and click Like on the button below. Thank you very much!


Links:

PHP Mall, software for running multi users mall websites

Real Estate Portal, script for powerful real estate portals

JobSite Professional, advanced jobs board software

Blog System, multi user blog hosting script

Car Portal, software for auto classifieds websites

Vlog System, video blog hosting script

WebSiteAdmin, flexible content management system

Pharmacy System, software for running online pharmacies

WebSite Creator, multi users content management system, fast website creation

Jobs Portal, flexible jobs portal solution

BlogSite Professional, community multi user script, start blogging and make firends

VlogSite Professional, video blogs community hosting script

NetArt Mall, create your online store for free and start selling online

Blog23, free blog portal - create your blow within minutes

RealEstate23, free USA real estate portal

BuyGreatDomain, buy or sell a domain name for free

iSellWebsite, free websites marketplace, post your website for sale

C# (Microsoft .NET) | JAVA | Dynamic HTML | PHP & MySQL | Perl & CGI | C | C++ | Vector Markup Language
SMIL | Assembler | Databases | Wap Development | Web site promotion | Web Marketing

Copyright © Anton Zamov 1998-2010