diff --git a/utils/axe.py b/utils/axe.py index 6e115c1f..6206a3dd 100644 --- a/utils/axe.py +++ b/utils/axe.py @@ -165,10 +165,15 @@ def details_section(header: str) -> str: section += f''' - - - -
ID{check["id"]}
Impact{check["impact"]}
Tags{check["tags"]}
Description{str(check["description"]).replace("<", "").replace(">", "")}
Help{str(check["help"]).replace("<", "").replace(">", "")}
Help URL{check["helpUrl"]}

''' + Description{str(check["description"]).replace("<", "<").replace(">", "&rt;")} + Help{str(check["help"]).replace("<", "<").replace(">", "&rt;")} + Help URL{check["helpUrl"]}''' + + if 'nodes' in check: + for node in check['nodes']: + section += f'''Affected Node{str(node).replace("<", "<").replace(">", "&rt;")}''' + + section += '
' else: section += f'

No {header} results returned.

'