MCPcopy Create free account
hub / github.com/BUPT-GAMMA/MASFactory / escape_string

Function escape_string

applications/chatdev/chatdev/utils.py:70–76  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

68 return wrapper
69
70def escape_string(value):
71 value = str(value)
72 value = html.unescape(value)
73 value = markdown.markdown(value)
74 value = re.sub(r'<[^>]*>', '', value)
75 value = value.replace("\n", " ")
76 return value

Callers 1

wrapperFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected