Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# encoding: utf-8 

2from . import * 

3 

4def unescape_html(html): 

5 """ 

6 *Unescape a string previously escaped with cgi.escape()* 

7 

8 **Key Arguments** 

9 

10 - ``dbConn`` -- mysql database connection 

11 - ``log`` -- logger 

12 - ``html`` -- the string to be unescaped 

13  

14 

15 **Return** 

16 

17 - ``html`` -- the unescaped string 

18  

19 """ 

20 html = html.replace("&lt;", "<") 

21 html = html.replace("&gt;", ">") 

22 html = html.replace("&quot;", '"') 

23 # THIS HAS TO BE LAST: 

24 html = html.replace("&amp;", "&") 

25 

26 return html