|
|
|
@ -1739,7 +1739,8 @@ public class HtmlHelper {
|
|
|
|
|
|
|
|
|
|
String ns = null;
|
|
|
|
|
for (Element h : parsed.select("html"))
|
|
|
|
|
for (Attribute a : h.attributes()) {
|
|
|
|
|
for (Attribute a : h.attributes())
|
|
|
|
|
try {
|
|
|
|
|
String key = a.getKey();
|
|
|
|
|
String value = a.getValue().toLowerCase(Locale.ROOT);
|
|
|
|
|
if ("xmlns".equals(key) && value.contains(W3NS)) {
|
|
|
|
@ -1749,9 +1750,12 @@ public class HtmlHelper {
|
|
|
|
|
ns = key.split(":")[1];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (Element e : parsed.select("*")) {
|
|
|
|
|
for (Element e : parsed.select("*"))
|
|
|
|
|
try {
|
|
|
|
|
String tag = e.tagName();
|
|
|
|
|
if (tag.contains(":")) {
|
|
|
|
|
boolean show = (ns == null || tag.startsWith(ns) ||
|
|
|
|
@ -1793,6 +1797,8 @@ public class HtmlHelper {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} catch (Throwable ex) {
|
|
|
|
|
Log.e(ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|