Fixes doctype sometimes visible in search

This commit is contained in:
rstefko 2025-09-23 14:10:48 +02:00
parent 418d9df89c
commit 8c85ab600c

View file

@ -158,7 +158,7 @@ class Search:
# Produce cleanable html soup from response
get_body_safed = get_body.text.replace("<","andlt;").replace(">","andgt;")
html_soup = bsoup(get_body_safed, 'html.parser')
html_soup = bsoup(get_body_safed, 'html.parser').html
# Replace current soup if view_image is active
# FIXME: Broken since the user agent changes as of 16 Jan 2025