Merge pull request #30414 from Larpon/docs/string-http_escape-methods

Provide documentation for String http_escape() and http_unescape() methods
This commit is contained in:
Rémi Verschelde 2019-07-08 08:11:44 +02:00 committed by GitHub
commit 5869f9c735
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

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