+# -*- coding: utf-8 -*-
+
from base import *
import re
from tag import Tag
import markdown
from base import *
import re
from tag import Tag
import markdown
+from django.utils.encoding import smart_unicode
from django.utils.translation import ugettext as _
from django.utils.safestring import mark_safe
from django.utils.html import strip_tags
from django.utils.translation import ugettext as _
from django.utils.safestring import mark_safe
from django.utils.html import strip_tags
return ''
def as_markdown(self, *extensions):
return ''
def as_markdown(self, *extensions):
- return self._as_markdown(self.body, *extensions)
+ return self._as_markdown(smart_unicode(self.body), *extensions)
@property
def headline(self):
@property
def headline(self):