Page MenuHomePhabricator

mw.html escapes strip markers, which prevents them from being unstripped
Closed, ResolvedPublic


Given this as Module:Foo:
local p = {}

function p.main(frame)
return mw.html.create('span'):css('color', frame.args[1]):wikitext('Hello world')

return p

The following code will not produce the expected result:

The color won't work because mw.html's cssEncode escapes the strip markers, preventing the parser from unstripping them.

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:31 AM
bzimport set Reference to bz68011.
bzimport added a subscriber: Unknown Object (MLST).

Change 161900 had a related patch set uploaded by Jackmcbarn:
Don't escape the delete character

Change 161900 merged by jenkins-bot:
Don't escape the delete character

Restricted Application added a subscriber: jeblad. · View Herald TranscriptOct 16 2020, 5:42 PM