Provide documentation for String http_escape() and http_unescape() methods

This commit is contained in:
lmp 2019-07-07 19:19:07 +02:00
parent 06a4212377
commit bb89cf6ab0

View file

@ -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">