class_docstr: Internal class for formatting output data in html.
  This class is intended for shared functionality between
  DataFrame.to_html() and DataFrame._repr_html_().
  Any logic in common with other output formatting methods
  should ideally be inherited from classes in format.py
  and this class responsible for only producing html markup.
class_docstr_tok: ["Internal","class","for","formatting","output","data","in","html",".","This","class","is","intended","for","shared","functionality","between","DataFrame.to_html","(",")","and","DataFrame._repr_html_","(",")",".","Any","logic","in","common","with","other","output","formatting","methods","should","ideally","be","inherited","from","classes","in","format.py","and","this","class","responsible","for","only","producing","html","markup","."]
code: def _write_cell(self, s, kind="td", indent=0, tags=None):
      if tags is not None:
          start_tag = "<{kind} {tags}>".format(kind=kind, tags=tags)
      else:
          start_tag = "<{kind}>".format(kind=kind)
  
      if self.escape:
          # escape & first to prevent double escaping of &
          esc = OrderedDict(
              [("&", r"&amp;"), ("<", r"&lt;"), (">", r"&gt;")]
          )
      else:
          esc = {}
  
      rs = pprint_thing(s, escape_chars=esc).strip()
  
      if self.render_links and _is_url(rs):
          rs_unescaped = pprint_thing(s, escape_chars={}).strip()
          start_tag += '<a href="{url}" target="_blank">'.format(
              url=rs_unescaped
          )
          end_a = "</a>"
      else:
          end_a = ""
  
      self.write(
          "{start}{rs}{end_a}</{kind}>".format(
              start=start_tag, rs=rs, end_a=end_a, kind=kind
          ),
          indent,
      )
  
imports: from __future__ import print_function
  from textwrap import dedent
  from pandas.compat import OrderedDict, lzip, map, range, u, unichr, zip
  from pandas.core.dtypes.generic import ABCMultiIndex
  from pandas import compat
  import pandas.core.common
  from pandas.core.config import get_option
  from pandas.io.common import _is_url
  from pandas.io.formats.format import TableFormatter, get_level_lengths
  from pandas.io.formats.printing import pprint_thing
label_desc: Use image node_id 10 for calling the HTMLFormatter obj's underlying member method code with example usage: obj._write_cell(s, kind, indent, tags) without return types