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
|
// Apply element
|
||||||
|
try {
|
||||||
String tag = element.tagName();
|
String tag = element.tagName();
|
||||||
int semi = tag.indexOf(':');
|
int semi = tag.indexOf(':');
|
||||||
if (semi >= 0)
|
if (semi >= 0)
|
||||||
tag = tag.substring(semi + 1);
|
tag = tag.substring(semi + 1);
|
||||||
|
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case "a":
|
case "a":
|
||||||
String href = element.attr("href");
|
String href = element.attr("href");
|
||||||
|
@ -2166,6 +2168,9 @@ public class HtmlHelper {
|
||||||
if (warn)
|
if (warn)
|
||||||
Log.e("Unknown tag=" + element.tagName());
|
Log.e("Unknown tag=" + element.tagName());
|
||||||
}
|
}
|
||||||
|
} catch (Throwable ex) {
|
||||||
|
Log.e(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue