title: How to replace all XHTML/HTML line breaks (<br>) with new lines?
body: <p>I am looking for the best <code>br2nl</code> function.  I would like to replace all instances of <code><code>&lt;br&gt;</code></code> and <code><code>&lt;br /&gt;</code></code> with newlines <code>\n</code>.  Much like the <a href="http://www.php.net/manual/en/function.nl2br.php" rel="noreferrer">nl2br()</a> function but the opposite.</p>
  
  <p>I know there are several solutions in the PHP manual comments but I'm looking for feedback from the SO community on possible solutions.</p>