Subversion Repositories SmartDukaan

Rev

Rev 230 | Blame | Compare with Previous | Last modification | View Log | RSS feed

'''
Created on 06-Jun-2010

@author: gaurav
'''

def unescape(s):
    """
     Documentation for method unescape
     @param a string
     @return the same string but in the unesescape form i.e 
     '&lt;' replaced with '<'
     '&gt;' replaced with '>'
     '&amp;' replaced with '&'
    """
    s = s.replace("&lt;", "<")
    s = s.replace("&gt;", ">")
    s = s.replace("&amp;", "&")
    return s