Diff
Sometimes URLs mistakenly contain XML versions of '&' and IABot URL encodes it .. solution check for '&' and convert to '&' prior to encoding.
Diff
Sometimes URLs mistakenly contain XML versions of '&' and IABot URL encodes it .. solution check for '&' and convert to '&' prior to encoding.
WaybackMedic has been fixing these in the wikitext as of a few weeks ago. A handful show up in each batch run.
Ugh. Another layer of decoding to add. htmlspecialchars_decode() should do the trick.