title: How to get the pure text without HTML element using JavaScript?
body: <p>I have the 1 button and some text in my HTML like the following:</p>
  
  <pre><code>function get_content(){
     // I don't know how to do in here!!!
  }
  
  &lt;input type="button" onclick="get_content()" value="Get Content"/&gt;
  &lt;p id='txt'&gt;
  &lt;span class="A"&gt;I am&lt;/span&gt;
  &lt;span class="B"&gt;working in &lt;/span&gt;
  &lt;span class="C"&gt;ABC company.&lt;/span&gt;
  &lt;/p&gt;
  </code></pre>
  
  <p>When the user clicks the button, the content in the <code>&lt;p id='txt'&gt;</code> will become the follow expected result:</p>
  
  <pre><code>&lt;p id='txt'&gt;
  // All the HTML element within the &lt;p&gt; will be disappear
  I am working in ABC company.
  &lt;/p&gt;
  </code></pre>
  
  <p>Can anyone help me how to write the JavaScript function?  </p>
  
  <p>Thank you.</p>