mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-09 12:49:48 -04:00
more
This commit is contained in:
@@ -107,10 +107,11 @@ class EmailRenderer(mistune.HTMLRenderer):
|
|||||||
title_attr = f' title="{title}"' if title else ""
|
title_attr = f' title="{title}"' if title else ""
|
||||||
return f'<a style="{LINK_STYLE}" href="{href}"{title_attr}>{display_text}</a>'
|
return f'<a style="{LINK_STYLE}" href="{href}"{title_attr}>{display_text}</a>'
|
||||||
|
|
||||||
def autolink(self, link, is_email=False):
|
def autolink(self, link, is_email=False): # noqa
|
||||||
|
|
||||||
return create_sanitised_html_for_url(link, style=LINK_STYLE)
|
return create_sanitised_html_for_url(link, style=LINK_STYLE)
|
||||||
|
|
||||||
def image(self, src, alt="", title=None, url=None):
|
def image(self, src, alt="", title=None, url=None): # noqa
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
def strikethrough(self, text):
|
def strikethrough(self, text):
|
||||||
|
|||||||
Reference in New Issue
Block a user