Sanitize on edit ref

This commit is contained in:
M66B 2020-08-20 19:27:34 +02:00
parent f52d3ccadf
commit 72827e45bb
1 changed files with 2 additions and 2 deletions

View File

@ -4257,7 +4257,7 @@ public class FragmentCompose extends FragmentBase {
Document d;
if (extras != null && extras.containsKey("html")) {
// Save current revision
Document c = JsoupEx.parse(body);
Document c = HtmlHelper.sanitizeCompose(context, body, true);
for (Element e : ref)
c.body().appendChild(e);
@ -4266,7 +4266,7 @@ public class FragmentCompose extends FragmentBase {
Helper.writeText(draft.getFile(context, draft.revision), c.html());
d = JsoupEx.parse(extras.getString("html"));
d = HtmlHelper.sanitizeCompose(context, extras.getString("html"), true);
} else {
d = HtmlHelper.sanitizeCompose(context, body, true);