<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nb">
	<id>https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Modul%3AEscape</id>
	<title>Modul:Escape - Sideversjonshistorikk</title>
	<link rel="self" type="application/atom+xml" href="https://www.wikisida.no/index.php?action=history&amp;feed=atom&amp;title=Modul%3AEscape"/>
	<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Escape&amp;action=history"/>
	<updated>2026-04-17T10:43:34Z</updated>
	<subtitle>Versjonshistorikk for denne siden på wikien</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Modul:Escape&amp;diff=61216&amp;oldid=prev</id>
		<title>Wikisida: Én sideversjon ble importert</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Escape&amp;diff=61216&amp;oldid=prev"/>
		<updated>2026-03-02T04:50:15Z</updated>

		<summary type="html">&lt;p&gt;Én sideversjon ble importert&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;nb&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Eldre sideversjon&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Sideversjonen fra 2. mar. 2026 kl. 04:50&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;nb&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Ingen forskjell)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key c1wiki:diff:1.41:old-61215:rev-61216 --&gt;
&lt;/table&gt;</summary>
		<author><name>Wikisida</name></author>
	</entry>
	<entry>
		<id>https://www.wikisida.no/index.php?title=Modul:Escape&amp;diff=61215&amp;oldid=prev</id>
		<title>nb&gt;Mysteriumen: trenger denne modulen for modulen Modul:RoundN</title>
		<link rel="alternate" type="text/html" href="https://www.wikisida.no/index.php?title=Modul:Escape&amp;diff=61215&amp;oldid=prev"/>
		<updated>2016-08-11T22:19:59Z</updated>

		<summary type="html">&lt;p&gt;trenger denne modulen for modulen Modul:RoundN&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Ny side&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local escape = {&lt;br /&gt;
	char = function(self, chr, args)&lt;br /&gt;
		args = args or {}&lt;br /&gt;
		local safe = args.safeChr or string.char(13)&lt;br /&gt;
		chr = tostring(chr or &amp;#039;\\&amp;#039;)&lt;br /&gt;
		self[1] = (&amp;#039;%s0%%s%s&amp;#039;):format(&lt;br /&gt;
			(&amp;#039;%x%s%s&amp;#039;):format(chr:byte(), safe, safe),&lt;br /&gt;
			(&amp;#039;%s%x&amp;#039;):format(safe, chr:byte())&lt;br /&gt;
		)&lt;br /&gt;
		if not self[self[1]] then&lt;br /&gt;
			self[self[1]] = {&lt;br /&gt;
				char = chr,&lt;br /&gt;
				text = (&amp;#039;%s(.)&amp;#039;):format(chr),&lt;br /&gt;
				undo = self[1]:format&amp;#039;(%d+)&amp;#039;&lt;br /&gt;
			}&lt;br /&gt;
		end&lt;br /&gt;
		return args.text and self:text(args.text)&lt;br /&gt;
			or args.undo and self:undo(args.undo, chr)&lt;br /&gt;
			or args.kill and self:kill(args.kill)&lt;br /&gt;
			or self&lt;br /&gt;
	end,&lt;br /&gt;
	exec = function(self, text, mode, newEscape)&lt;br /&gt;
		local target = self[self[1] or self:char() and self[1]]&lt;br /&gt;
		for v in text:gfind(target[mode]) do&lt;br /&gt;
			text = text:gsub(&lt;br /&gt;
				mode == &amp;#039;text&amp;#039; and&lt;br /&gt;
					(&amp;#039;%s%s&amp;#039;):format(target.char, v:gsub(&amp;#039;%W&amp;#039;, &amp;#039;%%%1&amp;#039;))&lt;br /&gt;
					or self[1]:format(v),&lt;br /&gt;
				mode == &amp;#039;text&amp;#039; and&lt;br /&gt;
					self[1]:format(v:byte())&lt;br /&gt;
					or (newEscape or &amp;#039;&amp;#039;) .. v:char()&lt;br /&gt;
			)&lt;br /&gt;
		end&lt;br /&gt;
		return text&lt;br /&gt;
	end,&lt;br /&gt;
	text = function(self, text)&lt;br /&gt;
		return self:exec(type(text) == &amp;#039;table&amp;#039; and text[1] or text, &amp;#039;text&amp;#039;)&lt;br /&gt;
	end,&lt;br /&gt;
	undo = function(self, text, newEscape)&lt;br /&gt;
		if type(text) == &amp;#039;table&amp;#039; then&lt;br /&gt;
			text, newEscape = unpack(text)&lt;br /&gt;
		end&lt;br /&gt;
		return self:exec(text, &amp;#039;undo&amp;#039;, newEscape)&lt;br /&gt;
	end,&lt;br /&gt;
	kill = function(self, text, chars, newEscape)&lt;br /&gt;
		if type(text) == &amp;#039;table&amp;#039; then&lt;br /&gt;
			text, chars, newEscape = unpack(text)&lt;br /&gt;
		end&lt;br /&gt;
		return self:undo(self:text(text):gsub(chars or &amp;#039;&amp;#039;, &amp;#039;&amp;#039;), newEscape)&lt;br /&gt;
	end&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function escape.main(frame)&lt;br /&gt;
	local args, family = {}, {frame:getParent(), frame}&lt;br /&gt;
	for f = 1, 2 do&lt;br /&gt;
		for k, v in pairs(family[f] and family[f].args or {}) do&lt;br /&gt;
			args[k] = args[k] or v:match(&amp;#039;^%s*(.-)%s*$&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if args.mode == &amp;#039;char&amp;#039; then&lt;br /&gt;
		return escape:char(args.char or args[2], args)&lt;br /&gt;
	end&lt;br /&gt;
	return escape[args.mode](escape:char(args.char), args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return escape&lt;/div&gt;</summary>
		<author><name>nb&gt;Mysteriumen</name></author>
	</entry>
</feed>