def unescape(s, quote=False):
s = s.replace('<STR_LIT>', '<STR_LIT:<>')<EOL>s = s.replace('<STR_LIT>', '<STR_LIT:>>')<EOL>if quote:<EOL><INDENT>s = s.replace('<STR_LIT>', '<STR_LIT:">')<EOL><DEDENT>s = s.replace('<STR_LIT>', '<STR_LIT:&>')<EOL>return s<EOL>
The opposite of the cgi.escape function.
Replace escaped characters '&amp;', '&lt;' and '&gt;' with the corresponding
regular characters. If the optional flag quote is true, the escaped quotation
mark character ('&quot;') is also translated.