Upd: I'm using Jsoup to parse text
When parsing one site, I faced the problem: when I get html text, some of links are corrupted with space in random place. For example:
What a pretty flower! <a href="www.goo gle.com/...">here</a> and <a href="w ww.google.com...">here</a>
As you may notice, the space position is completely random, but one thing is certain: it's inside an href
tag.
Of course, I can use the replace(" ", "")
method, but there may be two or more links.
How can I solve this problem?