Caudium.http_encode_string()
 
    NAME
Caudium.http_encode_string()

SYNOPSIS
string Caudium.http_encode_string(string what);

AVAILABILITY
Caudium 1.3+

DESCRIPTION
HTTP encode the specified string and return it. This means replacing the following characters to to %XX format: null (char 0), space, tab, carriage return, newline, percent and single and double quotes.

string what
The string to encode.

RETURNS
The HTTP encoded string.

EXAMPLE
Pike v7.4 release 1 running Hilfe v3.5 (Incremental Pike Frontend)
> Caudium.http_encode_string("this is a test:");
(1) Result: "this%20is%20a%20test:"
 
HTML OK CSS