Coverage for khufu/helpers/unescape_html.py : 100%

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 *
4def unescape_html(html):
5 """
6 *Unescape a string previously escaped with cgi.escape()*
8 **Key Arguments**
10 - ``dbConn`` -- mysql database connection
11 - ``log`` -- logger
12 - ``html`` -- the string to be unescaped
15 **Return**
17 - ``html`` -- the unescaped string
19 """
20 html = html.replace("<", "<")
21 html = html.replace(">", ">")
22 html = html.replace(""", '"')
23 # THIS HAS TO BE LAST:
24 html = html.replace("&", "&")
26 return html