encodePathEncode characters that need to be encoded on the path section of the URL. function encodePath(text: string | number): string;§encodePath(text: string | number): string[src]§Parameters§text: string | number[src] string to encode §Return Type§string[src]encoded string