equal
deleted
inserted
replaced
62 """Returns the given HTML with ampersands, quotes and carets decoded. |
62 """Returns the given HTML with ampersands, quotes and carets decoded. |
63 """ |
63 """ |
64 if not isinstance(html, basestring): |
64 if not isinstance(html, basestring): |
65 html = str(html) |
65 html = str(html) |
66 |
66 |
67 html.replace('&', '&').replace('<', '<') |
67 html.replace(''',"'").replace('<', '<') |
68 html.replace('>', '>').replace('"', '"').replace(''',"'") |
68 html.replace('>', '>').replace('"', '"').replace('&', '&') |
69 return html |
69 return html |
70 |
70 |
71 |
71 |
72 def getSingleIndexedParamValue(request, param_name, values=()): |
72 def getSingleIndexedParamValue(request, param_name, values=()): |
73 """Returns a value indexed by a query parameter in the HTTP request. |
73 """Returns a value indexed by a query parameter in the HTTP request. |