def escape(string):
    return string.replace('$', r'\$').replace('{', r'\{').replace('}', r'\}')
Escapes the special characters.
dataset/ETHPy150Open adambullmer/sublime_docblockr_python/commands.py/escape