Jump to content

Module:HTMLDecode

From Simple English Wikipedia, the free encyclopedia
Revision as of 11:19, 19 April 2020 by WOSlinker (talk | changes) (Protected "Module:HTMLDecode" ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

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

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



local i = {};

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

return i;