I have a list of strings with HTML elements and values.
define div with class abc with id xyz
consider image with alt this with src that with class responsive
........
I am trying to separate the elements along with their attributes and values like this
div class abc id xyz
img alt this src that class responsive
...........
I am using the following method
textElement = string.split ("with")
which will give me array and then again separating that. Is there any better way to do that?
Thank you