code: def _start_element (self, tag, attrs, end):
          
          tag = tag.encode(self.encoding, "ignore")
          self.fd.write("<%s" % tag.replace("/", ""))
          for key, val in attrs.items():
              key = key.encode(self.encoding, "ignore")
              if val is None:
                  self.fd.write(" %s" % key)
              else:
                  val = val.encode(self.encoding, "ignore")
                  self.fd.write(' %s="%s"' % (key, quote_attrval(val)))
          self.fd.write(end)
docs: Print HTML element with end string.
  
          @param tag: tag name
          @type tag: string
          @param attrs: tag attributes
          @type attrs: dict
          @param end: either > or />
          @type end: string
          @return: None