Escape HTML special characters ``&<>`` and quotes ``'"``.
(string)
| 2623 | |
| 2624 | |
| 2625 | def html_escape(string): |
| 2626 | ''' Escape HTML special characters ``&<>`` and quotes ``'"``. ''' |
| 2627 | return string.replace('&','&').replace('<','<').replace('>','>')\ |
| 2628 | .replace('"','"').replace("'",''') |
| 2629 | |
| 2630 | |
| 2631 | def html_quote(string): |
no test coverage detected