Merge pull request #149 from eleclerc/patch-1

Update to ExtractorHTML.java for cond. comments
This commit is contained in:
Kristinn Sigurðsson
2016-02-19 09:49:34 +00:00
@@ -138,7 +138,7 @@ public class ExtractorHTML extends ContentExtractor implements InitializingBean
"(?is)<(?:((script[^>]*+)>.*?</script)" + // 1, 2
"|((style[^>]*+)>.*?</style)" + // 3, 4
"|(((meta)|(?:\\w{1,"+MAX_ELEMENT_REPLACE+"}))\\s+[^>]*+)" + // 5, 6, 7
"|(!--(?!\\[if).*?--))>"; // 8
"|(!--(?!\\[if|>).*?--))>"; // 8
// version w/ problems with unclosed script tags
// static final String RELEVANT_TAG_EXTRACTOR =