Function for escaping the special symbols for putting into the regexp pattern as a simple text.
This function escapes all special symbols so that they are treated as a simple text in the replacement.
| Name | Pass type | Value type | Default value | Description |
|---|---|---|---|---|
| $str | by value | string |
The string to be escaped. |
The escaped string.