require("Module:<span class="searchmatch">string</span> utilities") local codepoint = m_str_utils.codepoint local decode_<span class="searchmatch">entities</span> = m_str_utils.decode_<span class="searchmatch">entities</span> local find = <span class="searchmatch">string</span>.find local...
html_<span class="searchmatch">entities</span>[ch] = entity return entity end function export.<span class="searchmatch">encode</span>_<span class="searchmatch">entities</span>(str, charset, str_lib, plain) -- Memoized HTML <span class="searchmatch">entities</span> (taken...
HTML <span class="searchmatch">entities</span> into plaintext. -- Iterates over <span class="searchmatch">entities</span> in a <span class="searchmatch">string</span>, and uses the MW decode function. Selectively uses the decodeNamed<span class="searchmatch">Entities</span> parameter...
ustring.gsub local usub = mw.ustring.sub local get_<span class="searchmatch">entities</span> = require("Module:utilities").get_<span class="searchmatch">entities</span> local table_insert = table.insert local table_concat...
text:gsub(pattern, function(cap1) return mw.text.<span class="searchmatch">encode</span>(cap1, "\"'") end) end return mw.text.<span class="searchmatch">encode</span>(text, "#%%&+/:<=>?@[\\%]_{|}") end -- Split the...