Module:HTMLDecode

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Lua

CodeDiscussionEditHistoryLinksLink count Subpages:DocumentationTestsResultsSandboxLive code All modules


Usage[edit]

Module:HTMLDecode can be used to remove HTML encoding from any text.

{{#invoke:HTMLDecode | HTMLDecode | text=***text to remove HTML encoding from*** }}


Code

local i = {};

function i.HTMLDecode(frame)
    return mw.text.decode(frame.args["text"]);
end

return i;