fix: Only remove scripts
All checks were successful
Build Docker / Build Main Image (push) Successful in 18s
Build Docker / Build SLDs Image (push) Successful in 18s

This commit is contained in:
Nathan Woodburn 2023-11-08 23:27:20 +11:00
parent 5ab71b84e0
commit 43ac7cfc6d
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 2 additions and 4 deletions

View File

@ -9,5 +9,4 @@ py3dns
passlib
argon2-cffi
mysql-connector-python
beautifulsoup4
bleach
beautifulsoup4

View File

@ -1,6 +1,5 @@
from flask import Flask, make_response, redirect, render_template_string, request, jsonify, render_template, send_from_directory
from bs4 import BeautifulSoup
import bleach
def render(data):
if data == "":
@ -12,7 +11,7 @@ def render(data):
script.extract()
modified = str(soup)
return render_template_string(bleach.clean(modified))
return render_template_string(modified)
except Exception as e: