mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Support for abbreviations
This commit is contained in:
@@ -100,7 +100,7 @@ public class HtmlHelper {
|
||||
static String sanitize(Context context, String html, boolean showQuotes) {
|
||||
Document parsed = Jsoup.parse(html);
|
||||
Whitelist whitelist = Whitelist.relaxed()
|
||||
.addTags("hr")
|
||||
.addTags("hr", "abbr")
|
||||
.removeTags("col", "colgroup", "thead", "tbody")
|
||||
.removeAttributes("table", "width")
|
||||
.removeAttributes("td", "colspan", "rowspan", "width")
|
||||
@@ -178,6 +178,9 @@ public class HtmlHelper {
|
||||
dd.appendElement("br").appendElement("br");
|
||||
}
|
||||
|
||||
// Abbreviations
|
||||
document.select("abbr").tagName("u");
|
||||
|
||||
// Images
|
||||
for (Element img : document.select("img")) {
|
||||
String src = img.attr("src");
|
||||
|
||||
Reference in New Issue
Block a user