Escape and quote a string to be used as an HTTP attribute.
(string)
| 2629 | |
| 2630 | |
| 2631 | def html_quote(string): |
| 2632 | ''' Escape and quote a string to be used as an HTTP attribute.''' |
| 2633 | return '"%s"' % html_escape(string).replace('\n',' ')\ |
| 2634 | .replace('\r',' ').replace('\t','	') |
| 2635 | |
| 2636 | |
| 2637 | def yieldroutes(func): |
nothing calls this directly
no test coverage detected