title: Extract text from the html using jQuery
body: <p>I have html as follows</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="chart-component-header"&gt;
    &lt;div class="template-block-header" contenteditable="false"&gt;&lt;span&gt;&lt;span class="collapse-icon open" data-action="collapse" title="Collapse section" contenteditable="false"&gt;&lt;/span&gt;&lt;span class="template-block-title" contenteditable="false"&gt;Allergies&lt;/span&gt;&lt;/span&gt;
      &lt;ul class="template-block-toolbar"&gt;
        &lt;li&gt;&lt;span class="up up-icon grayOut" data-action="up" title="Move up" contenteditable="false"&gt;&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span class="down down-icon grayOut" data-action="down" title="Move down" contenteditable="false"&gt;&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;span class="delete delete-icon" data-action="delete" title="Delete" contenteditable="false"&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>I want to extract Allergies from the span using jQuery or JS.
  While I was using</p>
  <pre><code>$(this).text();
  </code></pre>
  <p>It was returning AllergiesAllergies</p>