(text)
| 35 | |
| 36 | @staticmethod |
| 37 | def replace_post(text): |
| 38 | for a in SafeHTMLParser.replaces_post: |
| 39 | text = text.replace(a[0], a[1]) |
| 40 | if len(text) > 1 and text[0] == " ": |
| 41 | text = " " + text[1:] |
| 42 | return text |
| 43 | |
| 44 | def __init__(self, *args, **kwargs): |
| 45 | HTMLParser.__init__(self, *args, **kwargs) |