Html helper failsafe

This commit is contained in:
M66B 2020-08-12 22:21:55 +02:00
parent 993b30f4fa
commit bddf5760b3
1 changed files with 139 additions and 134 deletions

View File

@ -2026,10 +2026,12 @@ public class HtmlHelper {
}
// Apply element
try {
String tag = element.tagName();
int semi = tag.indexOf(':');
if (semi >= 0)
tag = tag.substring(semi + 1);
switch (tag) {
case "a":
String href = element.attr("href");
@ -2166,6 +2168,9 @@ public class HtmlHelper {
if (warn)
Log.e("Unknown tag=" + element.tagName());
}
} catch (Throwable ex) {
Log.e(ex);
}
}
}