xdmp:url-decode

xdmp:url-decode(
   $encoded as xs:string
) as xs:string

Summary

Converts URL-encoded string to plaintext. This decodes the string created with xdmp:url-encode.

Parameters
encoded Encoded text to be decoded.

Example

xdmp:url-decode("Why+not%3f")
=> "Why not?"
Powered by MarkLogic Server | Terms of Use | Privacy Policy