summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorlmp <dev.larpon@gmail.com>2019-07-07 19:19:07 +0200
committerlmp <dev.larpon@gmail.com>2019-07-07 21:15:06 +0200
commitbb89cf6ab0fc61a4da6c317bae1a042a48c6373c (patch)
treecb950c8461990e314c27f5b1a1fcb534ea1b96d3 /doc
parent06a42123779fd3c0f3118ddbd8ed393861f25ee3 (diff)
Provide documentation for String http_escape() and http_unescape() methods
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/String.xml8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index 1934c5af9a..15d796be54 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -392,12 +392,20 @@
<return type="String">
</return>
<description>
+ Escapes (encodes) a string to URL friendly format. Also referred to as 'URL encode'.
+ [codeblock]
+ print("https://example.org/?escaped=" + "Godot Engine:'docs'".http_escape())
+ [/codeblock]
</description>
</method>
<method name="http_unescape">
<return type="String">
</return>
<description>
+ Unescapes (decodes) a string in URL encoded format. Also referred to as 'URL decode'.
+ [codeblock]
+ print("https://example.org/?escaped=" + "Godot%20Engine%3A%27docs%27".http_unescape())
+ [/codeblock]
</description>
</method>
<method name="insert">