docs: def html(self, data='', py=True):
          """
          Convert data to html value format.
          """
  
          if py:
              value = self.to_html(data)
          else:
              value = data
          if self.static:
              return str('<span class="value">%s</span>' % safe_str(value))
          else:
              if self.hidden:
                  build = Hidden
              else:
                  build = self.build
              self._get_http_attrs()
              return str(build(name=self.name, value=value, id=self.id, **self.html_attrs))