string_unescape
Decode escaped text from JSON, HTML, shell, or other formats back to its original form. Supports multiple escape styles and returns the unescaped result.
Instructions
Reverse a source-code or markup escaping back to the original text.
Style-for-style inverse of string_escape (json|js|python|c|backslash escape
sequences, html|xml entities, unicode_escape, quoted_printable, mime_word,
and shell). Malformed escape sequences (and an unknown style) raise
ValueError. Returns {style, result}.
Example: string_unescape('a\nb', "json") -> result "ab"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Escaped text to decode back to its original form. | |
| style | Yes | Escaping convention `text` is in (inverse of string_escape): json|js|python|c|backslash, html|xml, unicode_escape, quoted_printable, mime_word, or shell. |