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; | ||
-- 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 ) |