improved html tag stripping
This commit is contained in:
@@ -25,6 +25,8 @@ from rowers.models import (
|
||||
|
||||
from rowers.courses import get_time_course
|
||||
|
||||
from rowers.emails import htmlstrip,htmlstripnobr
|
||||
|
||||
import rowers.mytypes as mytypes
|
||||
|
||||
import metrics
|
||||
@@ -616,6 +618,7 @@ def update_plannedsession(ps,cd):
|
||||
def update_indoorvirtualrace(ps,cd):
|
||||
for attr, value in cd.items():
|
||||
if attr == 'comment':
|
||||
value = htmlstripnobr(value)
|
||||
value.replace("\r\n", "
");
|
||||
value.replace("\n", "
");
|
||||
setattr(ps, attr, value)
|
||||
@@ -666,6 +669,7 @@ def update_indoorvirtualrace(ps,cd):
|
||||
def update_virtualrace(ps,cd):
|
||||
for attr, value in cd.items():
|
||||
if attr == 'comment':
|
||||
value = htmlstripnobr(value)
|
||||
value.replace("\r\n", "
");
|
||||
value.replace("\n", "
");
|
||||
setattr(ps, attr, value)
|
||||
|
||||
Reference in New Issue
Block a user