mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-23 08:14:45 +00:00
Fixed removing elements with/without namespace
This commit is contained in:
parent
e2de800e18
commit
e790cddb9f
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ public class HtmlHelper {
|
||||||
for (Element e : parsed.select("*")) {
|
for (Element e : parsed.select("*")) {
|
||||||
String tag = e.tagName();
|
String tag = e.tagName();
|
||||||
if (tag.contains(":")) {
|
if (tag.contains(":")) {
|
||||||
if (ns != null && tag.startsWith(ns)) {
|
if (ns == null || tag.startsWith(ns)) {
|
||||||
e.tagName(tag.split(":")[1]);
|
e.tagName(tag.split(":")[1]);
|
||||||
Log.i("Updated tag=" + tag + " to=" + e.tagName());
|
Log.i("Updated tag=" + tag + " to=" + e.tagName());
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue