Skip to content
Snippets Groups Projects
Commit daea9347 authored by Mike Bayer's avatar Mike Bayer
Browse files

wow, really cant have any characters in an anchor tag

parent ad21c5d1
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ filenames = []
class TOCElement(object):
def __init__(self, filename, name, description, parent=None, version=None, last_updated=None, doctitle=None, **kwargs):
self.filename = filename
self.name = re.sub(r'[<>&;]', '', name)
self.name = re.sub(r'[<>&;%]', '', name)
self.description = description
self.parent = parent
self.content = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment