title: Get content within a tag using Javascript from HTML
body: <p>I want a javascript code which will go through all the html file in my root folder and sub-folders and gets the content which are within a particular tag,
  eg: </p>
  
  <pre><code>&lt;div id="content"&gt;
  !!this content!!
  &lt;/div&gt;
  </code></pre>
  
  <p>It should check for a comment at the top of html and only get the content if it exist.</p>
  
  <blockquote>
    <p>&lt;!--Allowed--></p>
  </blockquote>
  
  <p>It should only get if this is there. First of all is this possible? I wish jquery could do this!</p>
  
  <p>Update:
  Got enlightened that javascript is for client-side! So One last question, how does you use php to get the content that is within the a particular tag?</p>
  
  <pre><code>    &lt;div id="content"&gt;
      !!this content!!
      &lt;/div&gt;
  </code></pre>