kerrickstaley / genanki

A Python 3 library for generating Anki decks
MIT License
1.99k stars 150 forks source link

Add support for uppercase characters in HTML tags #89

Closed gzzo closed 3 years ago

gzzo commented 3 years ago

Fixes #88

We could also use _INVALID_HTML_TAG_RE = re.compile(r'<(?!/?[a-z0-9]+(?: .*|/?)>)(?:.|\n)*?>', re.IGNORECASE | re.ASCII) instead of adding A-Z in the pattern, let me know what you prefer.