urlEncode() Returns a URL encoding of the current String Syntax String urlEncode() Example The following example encodes the data of an HTML Box: "data:text/html,"+htmldescription.urlEncode()