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