Clean heading text function This internal function is used in subcontents_links and heading_text to create an automated link between the two
clean_heading_text(text)
text
string
a string