fixed greedy parser, even with minified html