string_escape
Escape or unescape special characters in strings to handle formatting and prevent injection errors. Choose between escape and unescape modes for the given text.
Instructions
Escape or unescape special characters in strings.
Parameters:
text — String to escape or unescape.
mode — 'escape' (default) or 'unescape'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| mode | No | escape |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |