Having got bored of this problem showing up recently, I played around with various regexps to try and fix it neatly. However, I eventually noticed that I could just replace all & with & and the links still worked!
e.g., you can demo this with libnotify-bin
notify-send 'Bug 296953' 'Testing this bug showed we can & as much as we like even in links like <a href="http://www.google.com/search?hl=en&q=http://www.google.com/search?num=50&hl=en&q=%2Bgwibber+%2Bbug+%2B296953">http://www.google.com/search?hl=en&q=http://www.google.com/search?num=50&hl=en&q=%2Bgwibber+%2Bbug+%2B296953</a>'
So a naive fix (for testing) is now available in lp:~oldman/gwibber/bug-296953
Please test!
Having got bored of this problem showing up recently, I played around with various regexps to try and fix it neatly. However, I eventually noticed that I could just replace all & with & and the links still worked!
e.g., you can demo this with libnotify-bin
notify-send 'Bug 296953' 'Testing this bug showed we can & as much as we like even in links like <a href="http:// www.google. com/search? hl=en& q=http: //www.google. com/search? num=50& amp;hl= en& q=%2Bgwibber+ %2Bbug+ %2B296953">http:// www.google. com/search? hl=en& q=http: //www.google. com/search? num=50& amp;hl= en& q=%2Bgwibber+ %2Bbug+ %2B296953</a>'
So a naive fix (for testing) is now available in lp:~oldman/gwibber/bug-296953
Please test!