Handle minimal HTML in headings in ToC

Change-Id: I81f87c21c5a9e5e7d616d2bce325fc0695c71307