Hi Rob
I found some text libraries but I couldn’t find the one that tries to parse out URLs.
And yes, I was thinking the same to display the URL links as independent chunks and have listeners on them, but it seems much more complicated than I thought. Because the link can be multiple-line and at the same time it can also be surrounded with texts without line breaks.
For example, a text message like this with an URL inside:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Deinde qui fit, ut ego nesciam, sciant omnes, quicumque Epicurei esse voluerunt? Quae animi affectio suum cuique tribuens atque hanc, quam dico. Si alia sentit, (http://funnestplanetintheworld.com/thearticle?pid=10&key=thefunnythingintheworld&whatelse=alotofthingstobesaidhere) inquam, alia loquitur, numquam intellegam quid sentiat; Id enim volumus, id contendimus, ut officii fructus sit ipsum officium. Duo Reges: constructio interrete. Videamus animi partes, quarum est conspectus illustrior; Polycratem Samium felicem appellabant. Quem si tenueris, non modo meum Ciceronem, sed etiam me ipsum abducas licebit. Callipho ad virtutem nihil adiunxit nisi voluptatem, Diodorus vacuitatem doloris. Aliter enim nosmet ipsos nosse non possumus. Id mihi magnum videtur.
I was originally thinking to have newText() to show the texts until a “http” starts, but then I don’t know the “x” to start next text.
And if I try newText() to print line by line, if the URL is long enough to occupy multiple lines, it becomes very complicated.