def stripTags(s):
 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)))

def stripTags ( s ) : 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 ) ) )
remove the html tags from the string s -> str .