Page MenuHomePhabricator

In some Help sections of WikiEditor, the ‘What you get’ column shows raw HTML instead of rendered text
Closed, ResolvedPublic

Description

Links section of WikiEditor’s Help

In http://test2.wikipedia.org/ some Help sections of the toolbar have raw HTML (instead of the rendered text).

See the attached screen shots for details.

This problem is not there in en.wikipedia.org.


Version: unspecified
Severity: normal
OS: Linux

Attached:

20120225_001.png (161×1 px, 37 KB)

Details

Reference
bz34708

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 12:14 AM
bzimport set Reference to bz34708.
bzimport added a subscriber: Unknown Object (MLST).

Files section of WikiEditor’s Help

It seems wherever we output <a> element, it is being shown as HTML code.

Attached:

20120225_002.png (160×861 px, 26 KB)

It looks like the messages are getting escaped during export to JavaScript code...

mw.messages.values['wikieditor-toolbar-help-content-ilink-result']
gives
"&lt;a href='#'&gt;Link label&lt;/a&gt;<br />&lt;a href='#'&gt;Page title&lt;/a&gt;"

where it should be:
"<a href='#'>Link label</a><br /><a href='#'>Page title</a>"

Caused by r110045 -- reverted in r112526.