Enable quotes inline

This commit is contained in:
M66B
2019-05-02 13:29:05 +02:00
parent bb3893e3d3
commit bbfb33bae6
6 changed files with 53 additions and 60 deletions

View File

@@ -110,7 +110,7 @@ public class HtmlHelper {
return document.outerHtml();
}
static String sanitize(Context context, String html, boolean showQuotes) {
static String sanitize(Context context, String html) {
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
boolean paranoid = prefs.getBoolean("paranoid", true);
@@ -125,11 +125,6 @@ public class HtmlHelper {
.addProtocols("img", "src", "data");
final Document document = new Cleaner(whitelist).clean(parsed);
// Quotes
if (!showQuotes)
for (Element quote : document.select("blockquote"))
quote.html("…");
// Short quotes
for (Element q : document.select("q")) {
q.prependText("\"");