Page MenuHomePhabricator

HTML returned as text
Open, MediumPublic

Description

Event Timeline

It looks like rowiki defined a custom message including the <b> tags at: https://ro.wikipedia.org/w/index.php?title=MediaWiki:Search-interwiki-default&action=edit

In the code we only escape the message, we don't parse it with the wikitext parser. We can change it to parse as wikitext if necessary.

For reference, the message provided by the code for en:

Results from $1:

In the translation files for ro.json:

Rezultate de la $1:

Override on ro.wikipedia.org:

La <b>$1</b>:

Perhaps T146655 will remove the perceived need to wrap the title in <b> ? It puts the footer in a heading tag, making it more prominent. Not directly related, but ro.wikipedia.org may want to consider configuring https://ro.wikipedia.org/wiki/MediaWiki:Search-interwiki-custom to give each project a specific name instead of falling back to the search-interwiki-default message that uses the hostname. This is done on other wikis, such as https://en.wikipedia.org/wiki/MediaWiki:Search-interwiki-custom

debt lowered the priority of this task from High to Medium.Aug 1 2017, 11:06 PM
debt subscribed.

Hi @XXN - it looks like this could be fixed by an edit / revert of coding that was done on the wiki page for the <b> tag. I've messaged user:AdiJapan on their page: https://ro.wikipedia.org/wiki/Discu%C8%9Bie_Utilizator:AdiJapan#bold_tag_on_wiki_causing_display_issues as it looks like that was the author of the <b> tag, asking if they can fix/revert it.

looks like the custom message has been removed on rowiki

i was completely looking at the wrong page ... it's not fixed yet. I still think the right solution is to remove the tags from the message

debt added a subscriber: CKoerner_WMF.

We need someone with admin rights on this wiki in order to fix this. Moving this to the backlog until someone from rowiki can help — @AdiJapan and / or @XXN ?

@CKoerner_WMF can you help with this?