Page MenuHomePhabricator

wbformatentities with generate=text/plain HTML-escapes some characters
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

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.

Event Timeline

Change #1152400 had a related patch set uploaded (by Lucas Werkmeister; author: Lucas Werkmeister):

[mediawiki/extensions/Wikibase@master] repo: Skip HTML post-processing for plain text output

https://gerrit.wikimedia.org/r/1152400

Change #1152400 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] repo: Skip HTML post-processing for plain text output

https://gerrit.wikimedia.org/r/1152400

LucasWerkmeister claimed this task.

Looks fixed \o/

{
    "wbformatentities": {
        "P6562": "Google Play Movies & TV ID"
    },
    "success": 1
}