I am new to HTMLParser my terminal showing me below error :-
from django.utils.html import format_html, format_html_join, escape
File "/usr/local/lib/python3.5/dist-packages/django/utils/html.py", line 16, in
from .html_parser import HTMLParser, HTMLParseError
File "/usr/local/lib/python3.5/dist-packages/django/utils/html_parser.py", line 12, in
HTMLParseError = _html_parser.HTMLParseError
AttributeError: module 'html.parser' has no attribute 'HTMLParseError'
My Configuration is Python 3.5, Django 1.7.7 also using pip3
I have researched on it some experts are saying HTML parser is removed on a Python 3.5 version.
So how can I fix this?
Should I replace the HTMLParser with some other similar?
Or should I try to downgrade the python ?
Can someone help on this issue?