Permalink
Browse files

fixed default_text escaping

  • Loading branch information...
1 parent ed86929 commit a2072ccbc0bba6a852cfc3d13661cdc45d80f687 @brosner brosner committed Dec 17, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 agora/utils.py
View
@@ -1,5 +1,6 @@
from django.core.exceptions import ImproperlyConfigured
-from django.utils.html import urlize, linebreaks
+from django.utils.html import urlize, linebreaks, escape
+from django.utils.safestring import mark_safe
try:
from django.utils.importlib import import_module
except ImportError:
@@ -21,4 +22,4 @@ def load_path_attr(path):
def default_text(text):
- return linebreaks(urlize(text))
+ return mark_safe(linebreaks(urlize(escape(text))))

0 comments on commit a2072cc

Please sign in to comment.