Wikimedia
Convert HTML entity to plain character in error message
FileImporter is a mediawiki extension which allows users to import files to a wiki.
While importing, if there's an error connecting to the API, an error message is displayed. This error message says:
Failed to discover API location from: "https://commons.wikimedia.org/wiki/File:Image.jpg"
The ""
" before and after the url is a HTML special entity for quote mark ("). We need to convert this special entity back to plain character so that the message reads:
Failed to discover API location from: "https://commons.wikimedia.org/wiki/File:Image.jpg".
Task tags
Students who completed this task
AlexUnder