deb17 / flask-modals

Modals for flask
MIT License
9 stars 13 forks source link

Issue fixed about Markup #5

Open eanon opened 1 year ago

eanon commented 1 year ago

Trying Flask-Modals today (through the BS5 example), I got an error indicating missing Markup. So, I fixed it removing any version mention in requirements.txt to get all last ones, and changing modal.py as follow:

# from jinja2.utils import markupsafe
from markupsafe import Markup

# return markupsafe.Markup(render_template('modals/modalMessages.html'))
return Markup(render_template('modals/modalMessages.html'))

However, nice. Bravo!

mobone commented 10 months ago

I concur. I changed line 113 to html = markupsafe.Markup(nprogress_html + main_html) in modal.py. A few different ways to fix this