Apache Nutch is an extensible and scalable web crawler
Don't add script language and stylesheet type to the output text - it pollutes the summaries. Reported by Ilia S. Yatsenko.
Andrzej Bialecki9c188c82b22f
diff --git a/src/plugin/parse-html/src/java/org/apache/nutch/parse/html/DOMContentUtils.java b/src/plugin/parse-html/src/java/org/apache/nutch/parse/html/DOMContentUtils.javaindex 571f0d360..b138755c9 100644--- a/src/plugin/parse-html/src/java/org/apache/nutch/parse/html/DOMContentUtils.java+++ b/src/plugin/parse-html/src/java/org/apache/nutch/parse/html/DOMContentUtils.java@@ -102,25 +102,9 @@ public class DOMContentUtils {boolean abortOnNestedAnchors,int anchorDepth) {if ("script".equalsIgnoreCase(node.getNodeName())) {- Node n = node.getAttributes().getNamedItem("language");- if (n != null) {- String text = n.getNodeValue();- sb.append(text);- }return false;}if ("style".equalsIgnoreCase(node.getNodeName())) {- Node n = node.getAttributes().getNamedItem("rel");- if (n != null) {- String text = n.getNodeValue();- sb.append(text);- }- n = node.getAttributes().getNamedItem("type");- if (n != null) {- String text = n.getNodeValue();- if (sb.length() > 0) sb.append(", ");- sb.append(text);- }return false;}if (abortOnNestedAnchors && "a".equalsIgnoreCase(node.getNodeName())) {