MCPcopy Create free account
hub / github.com/dbcli/mycli / maybe_html_escape

Function maybe_html_escape

mycli/main_modes/repl.py:267–270  ·  view source on GitHub ↗
(string: str, is_html: bool)

Source from the content-addressed store, hash-verified

265
266
267def 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)

Callers 1

render_prompt_stringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected