Jump to content

Module:HTMLDecode: Difference between revisions

From cernipedia
m Changed protection settings for "Module:HTMLDecode": High-risk template or module ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))
m 3 revisions imported from wikipedia:Module:HTMLDecode
 
(No difference)

Latest revision as of 13:28, 19 November 2026

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;