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