Returns the string with special characters decoded.
(string)
| 1167 | return string |
| 1168 | |
| 1169 | def xml_decode(string): |
| 1170 | """ Returns the string with special characters decoded. |
| 1171 | """ |
| 1172 | string = string.replace("&", "&") |
| 1173 | string = string.replace("<", "<") |
| 1174 | string = string.replace(">", ">") |
| 1175 | string = string.replace(""","\"") |
| 1176 | string = string.replace("/", SLASH) |
| 1177 | return string |
| 1178 | |
| 1179 | #--- SENTENCE TO XML ------------------------------------------------------------------------------- |
| 1180 |
no outgoing calls
no test coverage detected
searching dependent graphs…