Escape and quote a string to be used as an HTTP attribute.
(string)
| 3493 | |
| 3494 | |
| 3495 | def html_quote(string): |
| 3496 | """ Escape and quote a string to be used as an HTTP attribute.""" |
| 3497 | return '"%s"' % html_escape(string).replace('\n', ' ')\ |
| 3498 | .replace('\r', ' ').replace('\t', '	') |
| 3499 | |
| 3500 | |
| 3501 | def yieldroutes(func): |
nothing calls this directly
no test coverage detected
searching dependent graphs…