How to explode string using javascript and regex after break <br>
followed by one of the following tags enclosures </i>
or </div>
or </b>
?
For example if my string is:
var string = "Some text<div><br></div>Second part of the text";
or
var string = "Some text<b><br></b>Second part of the text";
or
var string = "Some text<i><br></i>Second part of the text";
The output of the string should be:
string[0] = "Some text";
string[1] = "Second part of the text";
Thanks a lot!
as it's produced by the WTSWYG editor. Thanks for help... – hjuster Sep 18 '13 at 11:43