<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://ubersoft.org/Sputnik/wiki/skins/common/feed.css?301"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
		<id>http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_Escape</id>
		<title>Core Function Escape - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://ubersoft.org/Sputnik/wiki/index.php?action=history&amp;feed=atom&amp;title=Core_Function_Escape"/>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Escape&amp;action=history"/>
		<updated>2026-04-05T09:37:18Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.17.0</generator>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Escape&amp;diff=4779&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Escape&amp;diff=4779&amp;oldid=prev"/>
				<updated>2015-06-14T12:37:34Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:37, 14 June 2015&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Escape&amp;diff=4778&amp;oldid=prev</id>
		<title>UberFoX: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Escape&amp;diff=4778&amp;oldid=prev"/>
				<updated>2014-08-11T21:41:04Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 21:41, 11 August 2014&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	<entry>
		<id>http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Escape&amp;diff=3051&amp;oldid=prev</id>
		<title>UberFoX: Created page with &quot;&lt;pre&gt; Escape( &lt;expression&gt;, &lt;custom&gt; ) &lt;/pre&gt;  === Description ===  Add escapes to a string.  === Parameters ===  ==== expression ====  The string to use.  ==== custom ====  Opti...&quot;</title>
		<link rel="alternate" type="text/html" href="http://ubersoft.org/Sputnik/wiki/index.php?title=Core_Function_Escape&amp;diff=3051&amp;oldid=prev"/>
				<updated>2013-09-13T16:18:28Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; Escape( &amp;lt;expression&amp;gt;, &amp;lt;custom&amp;gt; ) &amp;lt;/pre&amp;gt;  === Description ===  Add escapes to a string.  === Parameters ===  ==== expression ====  The string to use.  ==== custom ====  Opti...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
Escape( &amp;lt;expression&amp;gt;, &amp;lt;custom&amp;gt; )&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
Add escapes to a string.&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
==== expression ====&lt;br /&gt;
&lt;br /&gt;
The string to use.&lt;br /&gt;
&lt;br /&gt;
==== custom ====&lt;br /&gt;
&lt;br /&gt;
Optional; A string containing characters to be escaped instead of escaping everything.&lt;br /&gt;
&lt;br /&gt;
=== Return Value ===&lt;br /&gt;
&lt;br /&gt;
Success: Returns a string with backslashes added. (' becomes \' and so on.). &lt;br /&gt;
&lt;br /&gt;
Failure: Returns empty string.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
This adds escapes toa string regardless if the escape is valid or not so even # will be replaced with \#.&lt;br /&gt;
&lt;br /&gt;
If you require more specific escape/unescape functions see the ones that deal with C/Sputnik specific escapes.&lt;br /&gt;
&lt;br /&gt;
To properly escape and resolve Sputnik strings see [[Core Function ResolveStr|ResolveStr( &amp;lt;expression&amp;gt; )]].&lt;br /&gt;
&lt;br /&gt;
=== Example ===&lt;br /&gt;
&lt;br /&gt;
Escape everything&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
say Escape(@&amp;quot;Hello World!&amp;quot;);&lt;br /&gt;
// Prints: \H\e\l\l\o\ \W\o\r\l\d\!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Escape only 'l' and 'o' characters&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;sputnik&amp;quot;&amp;gt;&lt;br /&gt;
say Escape(@&amp;quot;Hello World!&amp;quot;, 'lo');&lt;br /&gt;
// Prints: He\l\l\o W\or\ld!&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Core Function]]&lt;/div&gt;</summary>
		<author><name>UberFoX</name></author>	</entry>

	</feed>