Given an html string, how can I split it into an array so that each element is an html tag or a text.
For example.
<strong><u>Hello
after split
['<strong>','<u>','Hello']
Tried splitting by ‘>’ , /></g
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
Given an html string, how can I split it into an array so that each element is an html tag or a text.
For example.
<strong><u>Hello
after split
['<strong>','<u>','Hello']
Tried splitting by ‘>’ , /></g