Action Data
Escape String
Escapes special characters in a string to prevent breaking JSON, HTML, SQL, or other formats. Useful when user input contains quotes or other problematic characters.
Node IDEscapeStringAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Input String inputString | textarea | Yes | — | The string to be escaped. Can contain quotes, backslashes, or other special characters. |
Escape Mode escapeMode | enum | Yes | Json | The type of escaping to apply. Json handles quotes, backslashes, newlines, and tabs. Html escapes HTML entities. Sql escapes single quotes for SQL. Csv escapes quotes for CSV. Custom allows you to specify characters to escape. |
Custom Characters customCharacters | string | No | — | Characters to escape when using Custom mode. Each character will be escaped with a backslash. Example: "\"'" to escape quotes. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | No | An execution signal to trigger the action. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Result output0 | string | escaped_string | The string with special characters properly escaped. |