'Find the name and anchor for a given section
Args:
section: A section of parsed HTML that represents a section
Returns:
name: Name of the Element
anchor: Anchor tag to use when linking back to docs (ie #autoescape)'

def parse_name_and_anchor_from_data(self, section, heading_style):

    name = ''
    anchor = ''
    heading = section.find(heading_style)
    if heading:
        code = heading.find('code', {'class': 'docutils'})
        if code:
            name = code.find('span', {'class': 'pre'}).string
        a_tag = heading.find('a', {'class': 'headerlink'})
        if a_tag:
            anchor = a_tag['href']
    return (name, anchor)
