MCPcopy Index your code
hub / github.com/nodejs/node / escape_silent

Function escape_silent

tools/inspector_protocol/markupsafe/_native.py:31–37  ·  view source on GitHub ↗

Like :func:`escape` but converts `None` into an empty markup string.

(s)

Source from the content-addressed store, hash-verified

29
30
31def escape_silent(s):
32 """Like :func:`escape` but converts `None` into an empty
33 markup string.
34 """
35 if s is None:
36 return Markup()
37 return escape(s)
38
39
40def soft_unicode(s):

Callers

nothing calls this directly

Calls 2

MarkupClass · 0.90
escapeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…