{escape(content)}
from flask import current_app, request, url_for from flask_babel import gettext from markupsafe import Markup, escape def render_text_plain(_subtype, content, _path): return f'
{escape(content)}
" R += f'\n' R += f"{escape(link_text)}\n" R += "
\n" else: current_app.log.warning( "unknown Content-Disposition %s", p["head"]["content_disposition"] ) R += f"unknown Content-Disposition {p['head']['content_disposition']}
\n" R += "Unsupported MIME type of {maintype}/{subtype}
.