Module:HTMLDecode

From wikiNonStop
Revision as of 16:57, 7 December 2023 by en>Xaosflux (Changed protection settings for "Module:HTMLDecode": High-risk template or module ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Module documentation

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;