I am trying to remove all html tags using this regex:
<.+>(.+)</.+>

And I replace like this:
"<b onclick=\"foo\">Foo</b> bar".replace(new RegExp("\\<.{1,}\\>(.{1,})\\</.{1,}\\>", "g"), "$1")
This works fine, however, this doesnt work:
"<b onclick=\"foo\">Foo</b> bar <b>hello</b>".replace(new RegExp("\\<.{1,}\\>(.{1,})\\</.{1,}\\>", "g"), "$1")
Since I get hello