MCPcopy
hub / github.com/plotly/dash / css_escape

Function css_escape

tests/integration/callbacks/test_wildcards.py:32–35  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

30
31
32def css_escape(s):
33 sel = re.sub("[\\{\\}\\\"\\'.:,]", lambda m: "\\" + m.group(0), s)
34 print(sel)
35 return sel
36
37
38@pytest.mark.parametrize("content_callback", (False, True))

Callers 2

get_done_itemFunction · 0.85
assert_itemFunction · 0.85

Calls 2

subMethod · 0.80
groupMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…