/
githubmirror
/
vgstation13
Обзор
Документация
Войти
/
githubmirror
/
vgstation13
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
v0.1.2
bot/htmltagremove.py
28 строк
621 B
quartz235@gmail.com
Finally ready to like add this now oh man this is a huge thing sort of
23 дек 2011, 21:39
23 дек 2011, 21:39
4472cec
Код
Авторство
О чём код?
def htr(data): ignore = False if type(data) == list: b = [] for olio in data: tempolio = "" for letter in olio: if letter == "<": ignore = True else: pass if ignore != True: tempolio += letter else: pass if letter == ">": ignore = False else: pass tempolio = tempolio.replace("\t","") if len(tempolio) == 0: pass elif len(tempolio.replace(" ","")) == 0: pass else: b.append(tempolio) #Finetuning return b