mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 21:34:44 +02:00
Html: refactoring
This commit is contained in:
@@ -5924,11 +5924,11 @@ public class FragmentCompose extends FragmentBase {
|
||||
Element e = d.body();
|
||||
|
||||
// Apply styles
|
||||
List<CSSStyleSheet> sheets = HtmlHelper.parseStyles(d.head().select("style"));
|
||||
List<CSSStyleSheet> sheets = HtmlSanitize.parseStyles(d.head().select("style"));
|
||||
for (Element element : e.select("*")) {
|
||||
String tag = element.tagName();
|
||||
String clazz = element.attr("class");
|
||||
String style = HtmlHelper.processStyles(context, tag, clazz, null, sheets);
|
||||
String style = HtmlSanitize.processStyles(context, tag, clazz, null, sheets);
|
||||
style = HtmlHelper.mergeStyles(style, element.attr("style"));
|
||||
if (!TextUtils.isEmpty(style))
|
||||
element.attr("style", style);
|
||||
|
||||
Reference in New Issue
Block a user