So I have following string:
var s = \'Some Text Some other Text\';
The result should be a string with the content
This may suit your needs:
<([^ >]+)[^>]*>.*?\1>|<[^/]+/>
Debuggex Demo
In JavaScript:
$s = s.replace(/<([^ >]+)[^>]*>.*?<\/\1>|<[^\/]+\/>/ig, "");
It also removes self-closing tags (e.g. ).