(string: str, is_html: bool)
| 265 | |
| 266 | |
| 267 | def maybe_html_escape(string: str, is_html: bool) -> str: |
| 268 | if is_html: |
| 269 | return html.escape(string, quote=False) |
| 270 | return string |
| 271 | |
| 272 | |
| 273 | @functools.lru_cache(maxsize=256) |
no outgoing calls
no test coverage detected