5 " Módulo:string/encode_entities"

Módulo:string/encode entities

require(&quot;Module:<span class="searchmatch">string</span> utilities&quot;) 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...


Módulo:string utilities

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...


Módulo:utilities

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...


Módulo:links

ustring.gsub local usub = mw.ustring.sub local get_<span class="searchmatch">entities</span> = require(&quot;Module:utilities&quot;).get_<span class="searchmatch">entities</span> local table_insert = table.insert local table_concat...


Módulo:languages

text:gsub(pattern, function(cap1) return mw.text.<span class="searchmatch">encode</span>(cap1, &quot;\&quot;&#039;&quot;) end) end return mw.text.<span class="searchmatch">encode</span>(text, &quot;#%%&amp;+/:&lt;=&gt;?@[\\%]_{|}&quot;) end -- Split the...