Parse options for skipping HTML comments & script tags

Some pages contain junk like

    <!--<script>
    var maincontent = "#main";
    var exampleimg= "<img src=\"http://example.com/images/exampleimage.png\" style=\"position:absolute; top: 10px; right:-169px; z-index: 99;\"/>";
    if($(window).width() > 1270){
    	    $(maincontent).append(exampleimg);
    }
    </script>-->

This leads to a problem where the &lt;img&gt; tag in the script (which itself is in a comment) gets parsed, but returns only '\' (%5C) because of the escaped quotation mark.

I propose adding parseHTMLComments and parseScriptTags options with non-breaking defaults (ie. true) to skip HTML comments and script tags if wanted.