Fixed warnings

This commit is contained in:
M66B
2018-12-09 15:49:43 +01:00
parent 70b5c51db9
commit d73544c584
15 changed files with 49 additions and 59 deletions

View File

@@ -34,7 +34,7 @@ import java.util.regex.Pattern;
public class HtmlHelper {
private static Pattern pattern = Pattern.compile("([http|https]+://[\\w\\S(\\.|:|/)]+)");
public static String sanitize(String html) {
static String sanitize(String html) {
Document document = Jsoup.parse(Jsoup.clean(html, Whitelist.relaxed().addProtocols("img", "src", "cid")));
for (Element tr : document.select("tr"))