What's the best way to re-process HTML into a single-line string in PHP?

Paul

New Member
I'm working on a WordPress plugin that exports posts and associated data into a tab-seperated text format. It's almost finished, but I'm struggling to find the best method to re-process HTML into single strings.I'm using a combination of preg_replace and htmlentities, but it's getting a little messy.I'm sure there must be a preferred method for doing this, so I thought I would check with you? I can't find anything suitable on Google.
 
Back
Top