Загрузка данных
text = "<p>Hello, <b>world</b>!</p>" result = "" i = 0 while i < len(text): if text[i] == '<': while i < len(text) and text[i] != '>': i += 1 if i < len(text): i += 1 else: result += text[i] i += 1 print(result)