Provide documentation for String http_escape() and http_unescape() methods
This commit is contained in:
parent
06a4212377
commit
bb89cf6ab0
@ -392,12 +392,20 @@
|
|||||||
<return type="String">
|
<return type="String">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="http_unescape">
|
<method name="http_unescape">
|
||||||
<return type="String">
|
<return type="String">
|
||||||
</return>
|
</return>
|
||||||
<description>
|
<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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="insert">
|
<method name="insert">
|
||||||
|
Loading…
Reference in New Issue
Block a user