// retoor <retoor@molodetz.nl>
|
|
|
|
import "html" for Html
|
|
|
|
System.print(Html.urldecode("hello+world")) // expect: hello world
|
|
|
|
var encoded1 = "foo" + "\%3D" + "bar"
|
|
System.print(Html.urldecode(encoded1)) // expect: foo=bar
|
|
|
|
var encoded2 = "a" + "\%26" + "b"
|
|
System.print(Html.urldecode(encoded2)) // expect: a&b
|
|
|
|
System.print(Html.urldecode("test")) // expect: test
|
|
System.print(Html.urldecode("")) // expect:
|