19.0.0 released Nov 08, 2023
Purpose: Outputs a URL-encoded string.
p-url <string> [ length <length> ] [ bytes-written [ define ] <bytes written> ]
p-url is the same as p-out, except that the output is URL-encoded. This means such output is suited for use in URL parameters.
If "length" clause is used, then only <length> leading bytes of <string> are URL-encoded and then output. If "bytes-written" clause is used, then the number of bytes output will be in <bytes written>, which can be created with an optional "define".
Create a URL based on arbitrary strings used as URL parameters - for instance a space would be encoded as "%20" in the final output:
@<a href='<<p-path>>/update?item=<<p-url item_name>>'>Update</a>
See p-out for more examples.
You are free to copy, redistribute and adapt this web page (even commercially), as long as you give credit and provide a dofollow link back to this page - see full license at CC-BY-4.0
. Copyright (c) 2019-2023 Dasoftver LLC. Vely and elephant logo are trademarks of Dasoftver LLC. The software and information on this web site are provided "AS IS" and without any warranties or guarantees of any kind. Icons from table-icons.io
copyright Paweł Kuna, licensed under MIT