Commits

David Chambers committed 5c6a269

Added missing call to `mark_safe`.

Comments (0)

Files changed (1)

         self.body = re.sub(RE['skip'], '', self.body)
         self.html = mark_safe(re.sub(RE['skip'], '', self.html))
         if type(self) is Document:
-            self.excerpt = '\n'.join([Excerpt(parent=self).convert(s).html for s in snippets]) if snippets else self.html
+            self.excerpt = mark_safe('\n'.join([Excerpt(parent=self).convert(s).html for s in snippets])) if snippets else self.html
             self.type = self.meta.get('type', 'post' if self.datetime else 'page')
 
         # attach comments thread