Escape and quote a string to be used as an HTTP attribute.
(string)
| 3095 | |
| 3096 | |
| 3097 | def html_quote(string): |
| 3098 | """ Escape and quote a string to be used as an HTTP attribute.""" |
| 3099 | return '"%s"' % html_escape(string).replace('\n', ' ')\ |
| 3100 | .replace('\r', ' ').replace('\t', '	') |
| 3101 | |
| 3102 | |
| 3103 | def yieldroutes(func): |
nothing calls this directly
no test coverage detected