mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 22:26:06 +02:00
@@ -35,7 +35,7 @@ public class HtmlHelper {
|
||||
private static Pattern pattern = Pattern.compile("([http|https]+://[\\w\\S(\\.|:|/)]+)");
|
||||
|
||||
public static String sanitize(String html) {
|
||||
Document document = Jsoup.parse(Jsoup.clean(html, Whitelist.relaxed()));
|
||||
Document document = Jsoup.parse(Jsoup.clean(html, Whitelist.relaxed().addProtocols("img", "src", "cid")));
|
||||
for (Element tr : document.select("tr"))
|
||||
tr.after("<br>");
|
||||
NodeTraversor.traverse(new NodeVisitor() {
|
||||
|
||||
Reference in New Issue
Block a user