https://bugzilla.wikimedia.org/show_bug.cgi?id=44459

--- Comment #22 from Niklas Laxström <[email protected]> ---
We are on the right track here.

"mw.msg is a shortcut for mw.message(...).plain()"

Here I disagree. mw.msg should be a shortcut to mw.message().text(), just like
what wfMsg was in the PHP side. There is actual code out there depending on
this behavior.

I am sorry that we have got into this mess, but I think there is only way out
here, and that is, like you said, to make the JavaScript side match PHP side.

This means:
* mw.message.plain() is now working correctly
* mw.message.parse() output should be safe for direct inclusion in html,
parsing {{ and link syntax
* mw.message.text() should be introduced and it should function like mw.msg
used to function: expand {{ syntax
* mw.msg should be aliased to mw.message.text()
* mw.message.escaped() should be the same as mw.message.text() with html
escaping
* fix the calls that assume something else than what was stated above

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to