Anonymous user
Module:Lang: Difference between revisions
Jump to navigation
Jump to search
synch from sandbox;
m (synch from sandbox;) |
(synch from sandbox;) |
||
Line 81:
});
text = mw.text.decode (text, true); -- replace numeric and named html entities with their unicode characters
text = mw.ustring.gsub (text, '%[%[[^|]+|([^%]]+)%]%]', '%1'); -- remove the link and markup from complex wikilink in case interwiki to non-Latn wikipedia
return not is_set (mw.ustring.gsub (text, latn, '')); -- replace all latn characters with empty space; if result is all empty space, text is latn
|