I have some content in the database that looks like this:
aaaaaaaaaaaaaaaaaaa <ul> <li>bbbbbbbbbbbbbbbbbbb</li> <li>ccccccccccccccccccc</li> </ul> dddddddddddddddddddddddddddddddd eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
WordPress displays the above with proper breaklines and processes the HTML properly when I view that page/post. If I were to use a custom query to pull that content and display it, it would look chunked together, unless I use nl2br() around it. But then I don't want to have the br tags around my list:
aaaaaaaaaaaaaaaaaaa<br /> <br /> <ul><br> <li>bbbbbbbbbbbbbbbbbbb</li><br /> <li>ccccccccccccccccccc</li><br /> </ul><br /> <br /> dddddddddddddddddddddddddddddddd<br /> <br /> eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee<br />
I'd like to know if WordPress has a function that I could use that takes in a string parameter and displays the content the way it does. Any ideas?