Skip to content


Subversion checkout URL

You can clone with
Download ZIP


HTMLParser has problems with html in script variables... #1

jedie opened this Issue · 3 comments

1 participant

Response's content is no valid html: 'Unexpected end tag `p`


var js_sha_link='<p>***</p>';

or e.g.:

$("#preview_id_content div").html('<h2 class="noanchor">loading...</h2>');

This is also not valid?

AssertionError: html code is not valid: Unexpected end tag `input` (Line 1, Column 49), at line 1, column 50 - code: '<input value="Foo" type="text" name="first_name"></input>'

Should i open a seperate issuse?


This problem has other guys, too: django-compressor/django-compressor#60 ;)

The real problem is here: and has pachtes...


I tried from and this seems to fix this issues!

I add the patch in my django-tools with: jedie/django-tools@aa722b3

@gregmuellegger gregmuellegger referenced this issue from a commit
@gregmuellegger Fixed issue #1: resolving stdlib's problems with parsing script tags …
…with obscure (not correctly escaped) html content.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.