1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Remove marker attributes

This commit is contained in:
M66B 2020-12-15 13:50:07 +01:00
parent f5d81a17b5
commit 3267741545

View file

@ -328,8 +328,20 @@ public class HtmlHelper {
static Document sanitizeCompose(Context context, String html, boolean show_images) {
try {
Document parsed = JsoupEx.parse(html);
return sanitize(context, parsed, false, show_images);
Document d = sanitize(context, JsoupEx.parse(html), false, show_images);
d.select("*")
.removeAttr("x-block")
.removeAttr("x-inline")
.removeAttr("x-paragraph")
.removeAttr("x-font-size")
.removeAttr("x-font-size-rel")
.removeAttr("x-line-before")
.removeAttr("x-line-after")
.removeAttr("x-align")
.removeAttr("x-column")
.removeAttr("x-dashed")
.removeAttr("x-tracking");
return d;
} catch (Throwable ex) {
// OutOfMemoryError
Log.e(ex);