title: Strip formatting from link but not text inside
body: <p>I need my website to display an address and link to that same address on Google Maps.</p>
  
  <p>The CMS is outputting formatted text so it looks good on the page (with paragraph and break tags), but I need to strip these out in the href so it links correctly.</p>
  
  <p>In other words, I'm outputting something like this:</p>
  
  <pre><code>&lt;p&gt;Address Line 1&lt;br&gt;
  Address line 2&lt;br&gt;
  City, State, Zip&lt;/p&gt;
  </code></pre>
  
  <p>But I need a link around this text that uses the same output from the CMS, but strips the HTML tags from it. So, something like this:</p>
  
  <pre><code>&lt;a href="http://maps.google.com/?q=Address Line 1, Address Line 2 City, State, Zip"&lt;/a&gt;
  </code></pre>
  
  <p>I have been able to strip the tags and replace them with spaces, but then it also strips them from the formatted text within the link. I haven't been able to <em>only</em> strip the tags from the  and not the formatted text within the link.</p>
  
  <p>Anyone have an idea?</p>