Someone
public python v1 · immutabledef stripTags(s):# this list is neccesarry because chk() would otherwise not know# that intag in stripTags() is ment, and not a new intag variable in chk(). intag = [False] def chk(c): if intag[0]: intag[0] = (c != '>') return False elif c == '<': intag[0] = True return False return True return ''.join(c for c in s if chk(c))