I am new in JQuery and I am trying to get substring from main string.I know there is function available for that but I don't know how to do my task using that.
here is my string
//Page 1
<p>
<l> 30, St.Bishop Road, 30min </l>
<l> 10, St.Bishop Road, 10min </l>
</p>
//Page 2
<p>
<l> 30, St.Bishop Road, 30min </l>
<l> 10, St.Bishop Road, 10min </l>
</p>
I want to separate and store each <p><p> in array and same way for each <p></p> I want to store <l></l> value in array.
Keep in mind that this is not html element.this is string which I get from other task.
so How can I do this using jquery ?
Thanks
<l>should be like</l>