Last 5 Pages Viewed: Template talk:Em » Template:Indy TV » Template:Topeka TV » Special:RecentChangesLinked/Template:Top... » Special:MobileDiff/2133

Module:DecodeEncode: Difference between revisions

Jump to navigation Jump to search
Per edit request
imported>Matthiaspaul
(add workaround for & thinsp ;)
 
imported>Pppery
(Per edit request)
 
Line 34: Line 34:
local ret = nil;
local ret = nil;


    s = mw.ustring.gsub( s, ' ', ' ' ) -- Workaround for bug:   gets properly decoded in decode, but   doesn't.
-- U+2009 THIN SPACE: workaround for bug: HTML entity   is decoded incorrect. Entity   gets decoded properly
s = mw.ustring.gsub( s, ' ', ' ' )
-- U+03B5 ε GREEK SMALL LETTER EPSILON: workaround for bug (phab:T328840): HTML entity ε is decoded incorrect for gsub(). Entity ε gets decoded properly
s = mw.ustring.gsub( s, 'ε', 'ε' )


ret = mw.text.decode( s, not subset_only )
ret = mw.text.decode( s, not subset_only )
Anonymous user

Navigation menu