MCPcopy Index your code
hub / github.com/clips/pattern / xml_decode

Function xml_decode

pattern/text/tree.py:1169–1177  ·  view source on GitHub ↗

Returns the string with special characters decoded.

(string)

Source from the content-addressed store, hash-verified

1167 return string
1168
1169def xml_decode(string):
1170 """ Returns the string with special characters decoded.
1171 """
1172 string = string.replace("&", "&")
1173 string = string.replace("&lt;", "<")
1174 string = string.replace("&gt;", ">")
1175 string = string.replace("&quot;","\"")
1176 string = string.replace("/", SLASH)
1177 return string
1178
1179#--- SENTENCE TO XML -------------------------------------------------------------------------------
1180

Callers 1

_parse_tokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…