code: def html(self) -> str:
          
          if self.parentNode and self.parentNode._should_escape_text:
              return html.escape(self.data)
          return self.data
docs: Return html-escaped string representation of this node.