Module:StripTags

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Revision as of 03:32, 24 July 2024 by Vish (talk | contribs) (Created page with "local p = {} function p.stripTags(frame) local text = frame.args[1] -- Remove HTML tags text = mw.ustring.gsub(text, '<[^>]->', '') return text end return p")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Documentation for this module may be created at Module:StripTags/doc

local p = {}

function p.stripTags(frame)
    local text = frame.args[1]
    -- Remove HTML tags
    text = mw.ustring.gsub(text, '<[^>]->', '')
    return text
end

return p