refiking Posted May 17, 2009 Share Posted May 17, 2009 What I want to do is drop some text in a wysiwyg editor like this... title ing ing ing dir dir dir title ing ing ing dir dir dir title ing ing ing dir dir dir And I want the output to be like this... title <ul><li>ing</li><li>ing</li><li>ing</li></ul> <ul><li>dir</li><li>dir</li><li>dir</li></ul> title <ul><li>ing</li><li>ing</li><li>ing</li></ul> <ul><li>dir</li><li>dir</li><li>dir</li></ul> title <ul><li>ing</li><li>ing</li><li>ing</li></ul> <ul><li>dir</li><li>dir</li><li>dir</li></ul> What I'm thinking is to count the <br>'s, but I am completely open to all expertise and advice here. Thanks! Link to comment https://forums.phpfreaks.com/topic/158445-solved-help-parsing-data/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.