How to reproduce:
- Open https://en.wikipedia.org/wiki/All-on-4#/media/File:Nobel_Biocare_All-on-4_solution_image_1.jpg
- Click on the Download icon "Download this file" in the bottom-right corner
- Click on "You need to attribute the author"
- Click on "HTML"
- See the generated HTML below, it is mixed with encoded and decoded characters
By <a href="//commons.wikimedia.org/w/index.php?title=User:Nobel_Biocare&amp;action=edit&amp;redlink=1" class="new" title="User:Nobel Biocare (page does not exist)">Nobel Biocare</a> - <span class="int-own-work" lang="en">Own work</span>, <a href="https://creativecommons.org/licenses/by-sa/3.0" title="Creative Commons Attribution-Share Alike 3.0">CC BY-SA 3.0</a>, <a href="https://commons.wikimedia.org/w/index.php?curid=25125707">Link</a>
Produces:
Fix proposal:
By <a href="//commons.wikimedia.org/w/index.php?title=User:Nobel_Biocare&action=edit&redlink=1" class="new" title="User:Nobel Biocare (page does not exist)">Nobel Biocare</a> - <span class="int-own-work" lang="en">Own work</span>, <a href="https://creativecommons.org/licenses/by-sa/3.0" title="Creative Commons Attribution-Share Alike 3.0">CC BY-SA 3.0</a>, <a href="https://commons.wikimedia.org/w/index.php?curid=25125707">Link</a>
Would produce:

