Originally created by: mautini
Hello,
I've got a problem parsing this tweet : https://twitter.com/Gaohmee/status/1271191389867405312
I would like to get the display text for this tweet. For this, I use the text field and displayTextRangeStart and displayTextRangeEnd but for this tweet I got a text with a length of 140 chars and 148 for displayTextRangeEnd (so I got an indexoutofboundsexception).
After some research I found that you unescape HTML text from tweet and this one contains ampersands and I think that's the point : You don't recompute displayTextRangeStart and displayTextRangeEnd after unescaping (I found some code to recompute entities indices in HTMLEntity.java but nothing for these fields).
Can you confirm the bug and a way to fix it ?
Thanks