Steps to replicate the issue (include links if applicable):
- Have or create an entity with an & in the label, such as P6562 on Wikidata
- Call the action=wbformatentities API to format it in plain text, e.g. https://www.wikidata.org/w/api.php?action=wbformatentities&format=json&ids=P6562&generate=text%2Fplain&formatversion=2
What happens?:
The & is escaped:
{ "wbformatentities": { "P6562": "Google Play Movies & TV ID" }, "success": 1 }
What should have happened instead?:
It should not be escaped, as the output is plain text.
Other information (browser name/version, screenshots, etc.):
This was noticed during a Tool-wdactle playing section at Wikidata and Sister Projects 2025.