← Voltar
ansi_stripper.py
📋 Copiar código
import re def strip_ansi_codes(text): return re.sub(r'\x1b[^m]*m', '', text)