Insert templates as-is

This commit is contained in:
M66B 2020-08-05 08:05:57 +02:00
parent 37a6447bbb
commit b2df1d16a6
1 changed files with 2 additions and 6 deletions

View File

@ -3269,9 +3269,7 @@ public class FragmentCompose extends FragmentBase {
if (a != null) {
data.draft.subject = a.name;
Document d = JsoupEx.parse(a.getText(null));
Element e = d.body();
e.tagName("div");
document.body().appendChild(e);
document.body().append(d.body().html());
}
}
@ -3435,9 +3433,7 @@ public class FragmentCompose extends FragmentBase {
EntityAnswer a = db.answer().getAnswer(answer);
if (a != null) {
Document d = JsoupEx.parse(a.getText(data.draft.to));
Element e = d.body();
e.tagName("div");
document.body().appendChild(e);
document.body().append(d.body().html());
}
}