Decode special characters encodings found in string I{s}. @param s: A string to decode. @type s: str @return: The decoded string. @rtype: str
(self, s)
| 76 | return s |
| 77 | |
| 78 | def decode(self, s): |
| 79 | """ |
| 80 | Decode special characters encodings found in string I{s}. |
| 81 | @param s: A string to decode. |
| 82 | @type s: str |
| 83 | @return: The decoded string. |
| 84 | @rtype: str |
| 85 | """ |
| 86 | if isinstance(s, str) and '&' in s: |
| 87 | for x in self.decodings: |
| 88 | s = s.replace(x[0], x[1]) |
| 89 | return s |
no outgoing calls
no test coverage detected