reverse of simple_format?

Hello!

Is there a way to reverse the TextHelper simple_format? I.e. to take
some text with <p> tags and <br> tags and convert them into line
breaks in a smart way? (smarter than just a regexp that is).

TIA!

-Danimal