Presented is a string consisting of an XML string below:
var xmlString = "<str>rvrv</str>rvrv<q1>vrvv</q1>vrvrv<q2>rtvrvr</q2>";
I am seeking assistance on how to eliminate text that lies outside the tags (text not enclosed by any tag) using regular expressions. Can anyone help me with this?