Disabling Apple-converted-space

This commit is contained in:
M66B 2023-10-02 18:16:05 +02:00
parent de4561fac6
commit 2d07650db8
1 changed files with 11 additions and 9 deletions

View File

@ -3076,6 +3076,7 @@ public class HtmlHelper {
static void cleanup(Document d) {
// https://www.chromestatus.com/feature/5756335865987072
// Some messages contain 100 thousands of Apple spaces
if (false)
for (Element aspace : d.select(".Apple-converted-space")) {
Node next = aspace.nextSibling();
if (next instanceof TextNode) {
@ -3084,6 +3085,7 @@ public class HtmlHelper {
aspace.remove();
} else
aspace.replaceWith(new TextNode(" "));
Log.i("Replaced Apple-converted-space");
}
}