Escape string
Description
This operation is used to encode or "escape" characters in a string so that they can be safely used in different contexts, such as URLs, JSON, HTML, or code. This operation is helpful when you need to format text with special characters in a way that won’t break syntax or cause unintended effects in various data formats.
Data types
These are the input/output expected data types for this operation:
Input data
- Strings with the characters you want to escape.
Output data
- Strings with the required escaped characters.
Parameters
These are the parameters you need to configure to use this operation (mandatory parameters are marked with a *):
Example
Suppose you want to escape characters that are between "
in a series of input strings. To do it:
In your Pipeline, open the required Action configuration and select the input Field.
In the Operation field, choose Escape String.
Set Escape Level to
Special chars
.Set Escape Quote to
Double
.Set JSON compatible to
false
.Give your Output field a name and click Save. Matching characters will be escaped. For example:
She said, "Hello, world!" -> She said, \"Hello, world!\"
Last updated
Was this helpful?