type: fhirpath-functionfunction: unescapecategory: Additional String Functionssection: 5.7.4source: 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
Type Mapping
Example
'\"test\"'.unescape('json') // returns '"test"'