https://bugzilla.wikimedia.org/show_bug.cgi?id=53576
Web browser: ---
Bug ID: 53576
Summary: mediawiki.jqueryMsg double escapes HTML entities when
using mw.message(key).parse() on a message containing
a link
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Internationalization
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
original bug title:
mediawiki.jqueryMsg double escapes HTML entities when using
mw.message(key).parse() on a message containing a link
----
how to reproduce:
mw.loader.using('mediawiki.jqueryMsg', function() {
mw.messages.set({ simple: '→', subst: '→ $1 $2 $3', wlink: '[$1
linktext] $2 → $3' });
console.log(mw.message('simple').parse());
>> →
console.log(mw.message('subst', 'a', 'b', 'c').parse());
>> → a b c
console.log(mw.message('wlink', 'a', 'b', 'c').parse());
>> <a href="a">linktext</a> b &rarr; c
ISSUE: ---------------------------^
});
Expected result:
console.log(mw.message('wlink', 'a', 'b', 'c').parse());
>> <a href="a">linktext</a> b → c
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l