mirror of https://github.com/M66B/FairEmail.git
Html helper failsafe
This commit is contained in:
parent
993b30f4fa
commit
bddf5760b3
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue