This module provides ability to quote and unquote strings using backslash notation.
Unescape quote in string inp.
Example usage:
>> unescape('hello \"')
'hello "'
| Parameters: |
|
|---|---|
| Returns: | Unescaped string. |
| Return type: | str |
Escape quote in string inp.
Example usage:
>>> escape('hello "')
'hello \"'
>>> escape('hello \"')
'hello \\"'
| Parameters: |
|
|---|---|
| Returns: | Escaped string. |
| Return type: | str |