class_docstr: Test TOC Extension. 
class_docstr_tok: ["Test","TOC","Extension","."]
docstr: Test Headers with HTML special characters. 
docstr_tok: ["Test","Headers","with","HTML","special","characters","."]
code: def testHtmlSpecialChars(self):
      """Test Headers with HTML special characters."""
      text = "# Foo > & bar"
      self.assertEqual(
          self.md.convert(text),
          '<h1 id="foo-bar">Foo &gt; &amp; bar</h1>',
      )
      self.assertEqual(
          self.md.toc,
          '<div class="toc">\n'
          "<ul>\n"  # noqa
          '<li><a href="#foo-bar">Foo &gt; &amp; bar</a></li>\n'  # noqa
          "</ul>\n"  # noqa
          "</div>\n",
      )
      self.assertEqual(
          self.md.toc_tokens,
          [
              {
                  "level": 1,
                  "id": "foo-bar",
                  "name": "Foo &gt; &amp; bar",
                  "children": [],
              },
          ],
      )
  
imports: import unittest
  import markdown
label_desc: Use image node_id 9 for calling the TestTOC obj's underlying member method code with example usage: obj.testHtmlSpecialChars() without return types