'Create a dictionary with all metadata for the toc.ncx file
properly escaped.'

def toc_metadata(self, level, navpoints):

    metadata = {}
    metadata['uid'] = self.config.epub_uid
    metadata['title'] = self.config.epub_title
    metadata['level'] = level
    metadata['navpoints'] = navpoints
    return metadata
