MCPcopy Create free account
hub / github.com/bytedance/bolt / quote_string

Function quote_string

scripts/normalize_blog_posts.py:118–120  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

116
117
118def quote_string(value: str) -> str:
119 escaped = unquote_string(value).replace("\\", "\\\\").replace('"', '\\"')
120 return f'"{escaped}"'
121
122
123def render_value(key: str, value: str) -> str:

Callers 1

render_valueFunction · 0.85

Calls 2

unquote_stringFunction · 0.85
replaceMethod · 0.80

Tested by

no test coverage detected