remove only html tags in a string
var s = '<span>javascript</span> programming language';
var r = /<(\w+)[^>]*>.*<\/\1>/gi;
alert(s.replace(r,""))
Development Tricks, .NET Tips and Tricks, C#
Copyright web tricks | Designed by VeeThemes.com.
Proudly present by Blogger.
0 comments:
Post a Comment