code: def to_html(self):
          
  
          if self.items is None:
              return
          else:
              html = '<ul%s>\n' % self.html_attributes()
              for item in self.items:
                  if self.bullet_style:
                      html += '<li class="%s">%s</li>\n' % (
                          self.bullet_style, item.to_html())
                  else:
                      html += '<li>%s</li>\n' % item.to_html()
              html += '</ul>'
              return html
docs: Render a Text MessageElement as html.
  
          :returns: The html representation of the Text MessageElement
          :rtype: basestring