pf-url
Purpose:
Outputs a URL-encoded formatted string.
Syntax:
pf-url [ bytes-written [ define ] <bytes> ] <format> <expression> [ , <expression> ]...
Description:
pf-url is the same as
pf-out, except that the output is URL-encoded. This means such output is suited for use in URL parameters.
Examples:
Create a URL based on arbitrary strings used as URL parameters - for instance space would be encoded as
"%20" in the final output:
@<a href='<<p-path>>/update?val=<<pf-url "Purchased %s for %lld dollars", piece_desc, price>>'>Log transaction</a>
See
pf-out for more examples.
See also: