| Conditions | 1 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # coding: utf-8 |
||
| 36 | @property |
||
| 37 | def html_entity_decode(self): |
||
| 38 | """ |
||
| 39 | entry point of this set of tools |
||
| 40 | to decode html entities |
||
| 41 | """ |
||
| 42 | pattern = re.compile(r"&#(\w+?);") |
||
| 43 | string = pattern.sub(self.html_entity_decode_char, self.my_string) |
||
| 44 | return pattern.sub(self.html_entity_decode_codepoint, string) |
||
| 45 |