input: 
  def html_to_text(html_string: str) -> str:
      """ Converts HTML to plain text by removing all HTML tags.
      
      >>> html_to_text("<html><body><p>Hello, World!</p></body></html>")
      'Hello, World!'
      >>> html_to_text("<h1>Title</h1><p>Paragraph</p>")
      'TitleParagraph'
      >>> html_to_text("<body><p>Some text</p><div><p>More text</p></div></body>")
      'Some textMore text'
      """
      output = ''
      in_tag = False
      for char in html_string:
          if char == '<':
              in_tag = True
          elif char == '>':
              in_tag = False
          elif not in_tag:
              output += char
      return output
  
output:     output = ''
      in_tag = False
      for char in html_string:
          if char == '<':
              in_tag = True
          elif char == '>':
              in_tag = False
          elif not in_tag:
              output += char
      return output