in library/scripts/string_pack.py [0:0]
def unescape(text):
if not text:
return ""
if len(text) >= 2 and text.startswith('"') and text.endswith('"'):
return text[1:-1] # Strip the quotation marks
else:
return text.replace(r"\'", "'").replace(r"\"", '"').replace(r"\n", "\n")