When parsing files who were previously parsed by tidy-html5 with the tidy-mark option enabled (which is the default), the tags inserted by tidy-html5 are inserted again, resulting in duplicate meta name generator tags.
reproduction
file="eggs.html"
while [[ $(tidy -m "$file" 2> /dev/null) != 0 ]]; do
grep 'meta name="generator' "$file" | wc -l
done
output:
1
2
3
4
5
6
7
8
9
10
11
12
[ ... ]