Escape HTML special characters ``&<>`` and quotes ``'"``.
(string)
| 3089 | |
| 3090 | |
| 3091 | def html_escape(string): |
| 3092 | """ Escape HTML special characters ``&<>`` and quotes ``'"``. """ |
| 3093 | return string.replace('&', '&').replace('<', '<').replace('>', '>')\ |
| 3094 | .replace('"', '"').replace("'", ''') |
| 3095 | |
| 3096 | |
| 3097 | def html_quote(string): |
no test coverage detected