Private
Public Access
1
0

playing with nl2br pint message

This commit is contained in:
Sander Roosendaal
2018-12-11 18:20:16 +01:00
parent c27994bda2
commit 82c0d1e529

View File

@@ -54,6 +54,7 @@ def textify(html):
return text_only.replace('\n ', '\n').strip()
def newlinetobr(html):
html = html.replace('\n\n','<br>')
return html.replace('\n','<br>')
def send_template_email(from_email,to_email,subject,