So I have following string:
var s = \'Some Text Some other Text\';
The result should be a string with the content
Just remove html tag like this
var s = 'Some Text Some other Text'; var r = /<(\w+)[^>]*>.*<\/\1>/gi; s.replace(r,"");
Answer given over here :http://www.webdeveloper.com/forum/showthread.php?t=252483