django-livereload-server icon indicating copy to clipboard operation
django-livereload-server copied to clipboard

swap out beautifulsoup for a string.replace to avoid html reformatting

Open kbehlers opened this issue 5 years ago • 1 comments

see #28 . BeautifulSoup closes tags in unexpected ways during parsing, particularly because of its use of the python built-in 'html.parser'. I encounter similar mangling when using the middleware with certain custom tags.

This removes the dependency on BeautifulSoup to prevent any mangling. It is formatted with Black

django-debug-toolbar does something similar to this merge request, albeit with re.split and str.join instead of the simpler str.replace.

kbehlers avatar Aug 13 '19 20:08 kbehlers

@tjwalch Any chance of this PR getting accepted?

kbehlers avatar Oct 10 '19 16:10 kbehlers