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:
parent
f5d81a17b5
commit
3267741545
1 changed files with 14 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue