mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Fix invalid HTML
This commit is contained in:
parent
878037e83e
commit
b05653b94b
1 changed files with 6 additions and 1 deletions
|
@ -202,7 +202,12 @@ public class HtmlHelper {
|
|||
row.tagName("span");
|
||||
|
||||
document.select("caption").tagName("p");
|
||||
document.select("table").tagName("div");
|
||||
|
||||
for (Element table : document.select("table"))
|
||||
if (table.parent() != null && "a".equals(table.parent().tagName()))
|
||||
table.tagName("span"); // // Links cannot contain tables
|
||||
else
|
||||
table.tagName("div");
|
||||
|
||||
// Lists
|
||||
for (Element li : document.select("li")) {
|
||||
|
|
Loading…
Reference in a new issue