MCPcopy Index your code
hub / github.com/python-visualization/folium / escape_backticks

Function escape_backticks

folium/utilities.py:420–422  ·  view source on GitHub ↗

Escape backticks so text can be used in a JS template.

(text: str)

Source from the content-addressed store, hash-verified

418
419
420def escape_backticks(text: str) -> str:
421 """Escape backticks so text can be used in a JS template."""
422 return re.sub(r"(?<!\\)`", r"\`", text)
423
424
425def escape_double_quotes(text: str) -> str:

Callers 2

__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected