SWC-489: fix ToC headers, grab inner text rather than html