(text:str)
| 114 | |
| 115 | @staticmethod |
| 116 | def isHexa(text:str)->bool: |
| 117 | decoded = text.encode('unicode_escape').decode('utf-8', 'backslashreplace') |
| 118 | return '\\x' in decoded |
| 119 | |
| 120 | @staticmethod |
| 121 | def remove_invalidchars(text:str, valid_chars:list[str])->str: |