Same problem in de code I use, narrowed it down to this prettify call on the html fetched from porkbun.com
def strip_irrelevant_html(html):
soup = BeautifulSoup(html, 'html.parser')
for tag in soup.select(','.join([
f'{t}[nonce]' for t in ('script', 'style')])):
del tag['nonce']
return soup.prettify()
Same problem in de code I use, narrowed it down to this prettify call on the html fetched from porkbun.com
def strip_irrelevan t_html( html): ','.join( [
soup = BeautifulSoup(html, 'html.parser')
for tag in soup.select(
f'{t}[nonce]' for t in ('script', 'style')])):
del tag['nonce']
return soup.prettify()