Page MenuHomePhabricator

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

Description

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

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

return p

The following code will not produce the expected result:
{{#invoke:Foo|main|<nowiki>#00ff00</nowiki>}}

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


Version: unspecified
Severity: normal

Details

Reference
bz68011

Event Timeline

bzimport raised the priority of this task from to Normal.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

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

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

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