Replace characters Android doesn't like (AND-193), fix #890

This commit is contained in:
Grishka 2024-10-25 04:37:11 +03:00
parent a312018441
commit 6a18d8ef03
1 changed files with 1 additions and 0 deletions

View File

@ -93,6 +93,7 @@ public class HtmlParser{
Map<String, Hashtag> tagsByTag=tags.stream().distinct().collect(Collectors.toMap(t->t.name.toLowerCase(), Function.identity()));
Map<String, Mention> mentionsByID=mentions.stream().distinct().collect(Collectors.toMap(m->m.id, Function.identity()));
source=source.replaceAll("[\u2028\u2029]", "<br>");
final SpannableStringBuilder ssb=new SpannableStringBuilder();
Jsoup.parseBodyFragment(source).body().traverse(new NodeVisitor(){
private final ArrayList<SpanInfo> openSpans=new ArrayList<>();