Cbeam
|
Escapes specified characters in a given string.
Escapes specified characters in a given string.This function takes an input string and escapes characters that are found in the characters_to_escape
string. Each occurrence of any character from characters_to_escape
is prefixed with the specified escape_character
.
input | The string to be processed. |
escape_character | The character used for escaping. |
characters_to_escape | A string containing all characters that should be escaped. |