• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Character problems in parsed links

El Presidente

Beware The Milky Pirate!
Jan 3, 2011
32,076
24,076
43
Scotland
I like the way this forum handles links, if I paste a url and the target page has been titled properly, rather than displaying the url, the title of the page is displayed. For example -

http://www.bbc.co.uk/ is displayed as BBC - Homepage.

However, when certain characters are put into the title of the page, it throws that all to pot. For example -

http://www.bbc.co.uk/news/science-environment-13626587 should be displayed as Quantum mechanics rule 'bent' in classic experiment

However, because of the ' prefixing and suffixing bent, it is instead displayed as: BBC News - Quantum mechanics rule 'bent' in classic experiment.

I suspect ' is the html code for ' ?

I could probably get more examples if need be, as ' doesn't seem to be the only character that causes issues.

Is there any easy fix for this? It's not a major issue, but it does make things look nice and tidy. I know it can be avoided by manually typing in the page title, and using the url tags, but that just means more typing.
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones