Replace characters Android doesn't like (AND-193), fix #890
This commit is contained in:
parent
a312018441
commit
6a18d8ef03
|
@ -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<>();
|
||||
|
|
Loading…
Reference in New Issue