Outputs a URL-encoded formatted string.
pf-url [ bytes-written [ define ] <bytes> ] <format> <expression> [ , <expression> ]...
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.
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>
for more examples.
Copyright (c) 2022 DaSoftver LLC. Vely is a trademark of Dasoftver LLC. The software and information herein are provided "AS IS" and without any warranties or guarantees of any kind. Vely elephant logo (c) 2022 DaSoftver LLC. This web page is licensed under CC-BY-SA-4.0