Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
230 ashish 1
'''
2
Created on 06-Jun-2010
3
 
4
@author: gaurav
5
'''
6
 
7
def unescape(s):
255 ashish 8
    """
9
     Documentation for method unescape
10
     @param a string
11
     @return the same string but in the unesescape form i.e 
12
     '&lt;' replaced with '<'
13
     '&gt;' replaced with '>'
14
     '&amp;' replaced with '&'
15
    """
230 ashish 16
    s = s.replace("&lt;", "<")
17
    s = s.replace("&gt;", ">")
18
    s = s.replace("&amp;", "&")
19
    return s