Strip namespace from tags

pull/184/head
M66B 5 years ago
parent c879684e78
commit 59d6b939f5

@ -2102,7 +2102,11 @@ public class HtmlHelper {
} }
// Apply element // Apply element
switch (element.tagName()) { String tag = element.tagName();
int semi = tag.indexOf(':');
if (semi >= 0)
tag = tag.substring(semi + 1);
switch (tag) {
case "a": case "a":
String href = element.attr("href"); String href = element.attr("href");
if (!TextUtils.isEmpty(href)) if (!TextUtils.isEmpty(href))

Loading…
Cancel
Save