Module:Sandbox/Aseleste/Indexer: Difference between revisions

Content deleted Content added
fix: un-preprocessed template
fix: escape
Line 161:
 
unstrip_and_strip_nowiki_tags = function(text)
local result = mw.text.unstripNoWiki(text):gsub("<nowiki>", ""):gsub("</nowiki>", "") -- need this variable to only return 1 result
:gsub("<nowiki>", "")
:gsub("</nowiki>", "")
:gsub("&lt;", "<") -- needs to be escaped in the source
:gsub("&gt;", ">")
:gsub("&quot;", '"')
return result
end