mirror of https://github.com/M66B/FairEmail.git
Removed size limit
This commit is contained in:
parent
e576a17320
commit
29ee1b163d
|
@ -78,7 +78,6 @@ import static androidx.core.text.HtmlCompat.TO_HTML_PARAGRAPH_LINES_CONSECUTIVE;
|
||||||
public class HtmlHelper {
|
public class HtmlHelper {
|
||||||
static final int PREVIEW_SIZE = 250; // characters
|
static final int PREVIEW_SIZE = 250; // characters
|
||||||
|
|
||||||
private static final int MAX_SIZE = 100 * 1024; // characters
|
|
||||||
private static final int MAX_LINKS = 500;
|
private static final int MAX_LINKS = 500;
|
||||||
private static final int TRACKING_PIXEL_SURFACE = 25; // pixels
|
private static final int TRACKING_PIXEL_SURFACE = 25; // pixels
|
||||||
|
|
||||||
|
@ -91,11 +90,6 @@ public class HtmlHelper {
|
||||||
Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory);
|
Executors.newSingleThreadExecutor(Helper.backgroundThreadFactory);
|
||||||
|
|
||||||
static String sanitize(Context context, String html, boolean show_images) {
|
static String sanitize(Context context, String html, boolean show_images) {
|
||||||
if (html.length() > MAX_SIZE) {
|
|
||||||
Log.i("Message size=" + html.length());
|
|
||||||
return "<strong>" + context.getString(R.string.title_hint_too_complex) + "</strong>";
|
|
||||||
}
|
|
||||||
|
|
||||||
Document parsed = Jsoup.parse(html);
|
Document parsed = Jsoup.parse(html);
|
||||||
|
|
||||||
// <html xmlns:v="urn:schemas-microsoft-com:vml"
|
// <html xmlns:v="urn:schemas-microsoft-com:vml"
|
||||||
|
|
Loading…
Reference in New Issue