title: Temporary removal of HTML from string for Google Translate API to reduce cost
body: <p>I have to translate some details using a Google API which we're paying for. The details contain HTML, and Google charges for each character.  I don't want to send the complete content, but only the English text instead, with the HTML removed. I can remove HTML tags and entities using PHP functions, but I have to place the English content back in the HTML tags after translation for proper display. It will also include CSS. </p>
  
  <p>Example:</p>
  
  <pre><code>&lt;strong&gt;This is a test&lt;/strong&gt;&lt;br /&gt; &amp;nbsp; &lt;custom tag&gt;This is a test&lt;/custom tag&gt;&lt;br /&gt;
  </code></pre>
  
  <p>After translation to Spanish I need:</p>
  
  <pre><code>&lt;strong&gt;Translated content &lt;/strong&gt;&lt;br /&gt; &amp;nbsp; &lt;p&gt;Translated content &lt;/p&gt;&lt;br /&gt;
  </code></pre>
  
  <p>How can I preserve the HTML format with out sending HTML to the API?</p>