diff --git a/r2/r2/lib/filters.py b/r2/r2/lib/filters.py index a8237ec22..7dce89b9c 100644 --- a/r2/r2/lib/filters.py +++ b/r2/r2/lib/filters.py @@ -226,7 +226,7 @@ def safemarkdown(text, nofollow=False, wrap=True, **kwargs): if wrap: return SC_OFF + MD_START + text + MD_END + SC_ON else: - return text + return SC_OFF + text + SC_ON def keep_space(text): diff --git a/r2/r2/templates/oauth2authorization.html b/r2/r2/templates/oauth2authorization.html index 950602156..ba172fdc5 100644 --- a/r2/r2/templates/oauth2authorization.html +++ b/r2/r2/templates/oauth2authorization.html @@ -21,12 +21,12 @@ ################################################################################ <%! from r2.lib.template_helpers import static, s3_https_if_secure - from r2.lib.filters import safemarkdown %> +<%namespace file="utils.html" import="_md" />
${thing.client.name} icon - ${unsafe(safemarkdown(_("#[%(app_name)s](%(app_about_url)s) requests to connect with your reddit account.") - % dict(app_name=thing.client.name, app_about_url=thing.client.about_url), wrap=False))} + ${_md("#[%(app_name)s](%(app_about_url)s) requests to connect with your reddit account." + % dict(app_name=thing.client.name, app_about_url=thing.client.about_url))}

${_("Allow %(app_name)s to:") % dict(app_name=thing.client.name)}