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 {

View File

@ -236,6 +236,7 @@
android:layout_marginEnd="48dp"
android:text="@string/title_advanced_display_hidden_hint"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?attr/colorWarning"
android:textStyle="italic"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"