Content extractor HTML comment bugfix

The extractor was not working correctly, if there were HTML comments in between the markers. This change should also make extraction proccess more performant.