MCPcopy Create free account
hub / github.com/CodeClash-ai/CodeClash / unescape_content

Function unescape_content

codeclash/viewer/app.py:953–958  ·  view source on GitHub ↗

Unescape literal \\n characters to actual newlines for proper display in tags

(value)

Source from the content-addressed store, hash-verified

951
952
953def unescape_content(value):
954 """Unescape literal \\n characters to actual newlines for proper display in <pre> tags"""
955 if value is None:
956 return ""
957 # Replace literal \n with actual newlines
958 return value.replace("\\n", "\n")
959
960
961def get_folder_name(path):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected