Search - User list
Full Version: HTMLParseError: malformed start tag
Root » Bugs » HTMLParseError: malformed start tag
1
jedie
Users can get HTMLParseError in DjangoBB if he use Python <2.7.3

IMHO this should be added to the (not existing) README.

The Problem is in HTMLParser while replacing text smilies with pictures to exclude ‘a’, ‘pre’ and ‘span’ blocks.
Example and more info here: https://github.com/jedie/django-phpBB3/issues/14

A work-a-round is to disable smiles support with settings.DJANGOBB_SMILES_SUPPORT = False

Other work-a-round is to change smiles() in ./djangobb_forum/util.py to e.g.:
def smiles(data):
    """
    Replace text smiles.
    """
    try:
        parser = ExcludeTagsHTMLParser(_smile_replacer)
        parser.feed(data)
        smiled_html = parser.html
        parser.close()
    except HTMLParseError, err:
        smiled_html = data
    return smiled_html
So smilies would not replaced with picture, if HTMLParser can't parse the text.

EDIT: Create http://djangobb.org/ticket/238 for this

EDIT2: https://github.com/slav0nic/DjangoBB/pull/17
rock123
google
rock123
The ScoopFree self-cleaning litter box is smore.com among one of the most popular,litterboxhub praised as well as sufficient How To Litter Train A Dog automated litter systems Best Litter Box available, as well as it is LitterBox Hub noteworthy affordable.
rock123
Besides that, your tumblr.com/ phone could get bricked in situation Click Here it accesses any kind of corrupt file during Download CreeHack Instantly for Android, iOS & Windows rooting reaches to CreeHack APK a level you aim for. Some video games CreeHack can be downloaded.









XRumerTest
Hello. And Bye.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB