I want to split HTML text divisions into an array for further parsing.
The HTML is rather simple, only <br> and <p> separating text.
How can split the text into an array as if I were using:
lines = text.split("\n");
but with <br> & <p> instead of "\n"?