SWC-489: fix ToC headers, grab inner text rather than html
Merge pull request #244 from jay-hodgson/SWC-489

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