From bb89cf6ab0fc61a4da6c317bae1a042a48c6373c Mon Sep 17 00:00:00 2001 From: lmp Date: Sun, 7 Jul 2019 19:19:07 +0200 Subject: [PATCH] Provide documentation for String http_escape() and http_unescape() methods --- doc/classes/String.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/classes/String.xml b/doc/classes/String.xml index 1934c5af9a4..15d796be544 100644 --- a/doc/classes/String.xml +++ b/doc/classes/String.xml @@ -392,12 +392,20 @@ + 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] + 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]