Allow displaying hidden namespaced elements

This commit is contained in:
M66B
2020-10-09 08:01:19 +02:00
parent e790cddb9f
commit 6afd0a8ce4
2 changed files with 3 additions and 1 deletions

View File

@@ -387,7 +387,8 @@ public class HtmlHelper {
for (Element e : parsed.select("*")) {
String tag = e.tagName();
if (tag.contains(":")) {
if (ns == null || tag.startsWith(ns)) {
if (display_hidden ||
ns == null || tag.startsWith(ns)) {
e.tagName(tag.split(":")[1]);
Log.i("Updated tag=" + tag + " to=" + e.tagName());
} else {