I need to get Data1
,'Data2' and 'Data3' from the below text using JavaScript functions or regular expressions.
var myText= "<ls> <data id="1">Data1</data> <data id="2">Data2</data> <data id="3">Data3</data> </ls>";
myText variable will hold the data as above, i need to extract Data 1 ,Data 2, and Data from it.