--- type: "fhirpath-function" title: "FHIRPath Function: unescape" function: "unescape" category: "Additional String Functions" section: "5.7.4" source: "fhirpath/functions.json" --- # FHIRPath Function: unescape {:.stu} The unescape function takes a singleton string and unescapes it for a given target. The available targets are specified in the escape function description. {:.stu} If the input is empty, the result is empty. {:.stu} If no target is specified, the result is empty. {:.stu} ## Summary - **Category**: Additional String Functions - **Section**: `5.7.4` - **Return Type**: `String` - **Empty Input Result**: `empty` - **Errors on Multiple Input**: `true` ## Description The unescape function takes a singleton string and unescapes it for a given target. Available targets are html and json. ## Arguments - `target`: `String` - Target format (html, json) ## Type Mapping - `String-String` ## Example ```fhirpath '\"test\"'.unescape('json') // returns '"test"' ```