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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.