Page MenuHomePhabricator

<span> visible in translations where the title has not been translated
Closed, ResolvedPublicBUG REPORT

Description

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

What happens?:
The main heading says "<span lang="en" dir="ltr" class="mw-content-ltr">Blocking of fake signatures --[[User:Testuser|resutseT]]</span> (Community Wishlist/W121/ja)".

What should have happened instead?:
It says "Blocking of fake signatures --[[User:Testuser|resutseT]] (Community Wishlist/W121/ja)".

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change #1198059 had a related patch set uploaded (by Adarsh2406; author: Adarsh2406):

[mediawiki/extensions/CommunityRequests@master] Fix display of page title when title contains parser-produced HTML

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

Hey tried to fix this error can someone review my changes ?

@Adarsh2406 Thanks for the patch! Please avoid pinging, there was already a patch notification right above your comment. Thanks.

<span> should also be removed from API responses.

https://meta.wikimedia.org/wiki/Special:ApiSandbox#action=query&format=json&list=communityrequests-wishes&formatversion=2&crwlang=ja&crwprop=title&crwlimit=max

Indeed! I've merged the above patch to get things moving along. The issue with the API is technically a separate issue, but nonetheless needs to be fixed. It would appear we are storing the Translate-provided markup, so I would think the fix should be there. r1198059 should still work as written because we aren't pulling the title from the API when viewing wish pages.

Related: T407000: Wikitext badly escaped on wishes page

Change #1198059 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Fix display of page title when title contains parser-produced HTML

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

Adarsh2406 added a project: RoadToWiki.
Adarsh2406 moved this task from Incoming to Completed on the RoadToWiki board.

Change #1200744 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CommunityRequests@master] Ensure titles are HTML-safe for display, and sanitized in storage

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

MusikAnimal changed the task status from Open to In Progress.Nov 3 2025, 8:14 PM
MusikAnimal raised the priority of this task from Medium to High.

Apologies for the noise with the reverting and re-reverting. Adarsh2406's work is great (thank you!), but it looks like there's more to be done.

Change #1200744 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Ensure titles are sanitized for display and storage

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

Change #1203758 had a related patch set uploaded (by MusikAnimal; author: MusikAnimal):

[mediawiki/extensions/CommunityRequests@master] Escape wikitext syntax in wikitext storage, but keep it everywhere else

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

Change #1206055 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/core@master] parser: Add an option to Sanitizer::removeSomeTags() to allow comments

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

Change #1206055 merged by jenkins-bot:

[mediawiki/core@master] parser: Add an option to Sanitizer::removeSomeTags() to allow comments

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

Change #1203758 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Escape wikitext syntax in wikitext storage, but keep it everywhere else

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