Commit 483ba6fb authored by Jérome Perrin's avatar Jérome Perrin Committed by Xiaowu Zhang

hack: do not force safe html

parent 444f377e
...@@ -156,8 +156,8 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, TextContent ...@@ -156,8 +156,8 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, TextContent
if not self.hasConversion(**kw): if not self.hasConversion(**kw):
portal_transforms = portal.portal_transforms portal_transforms = portal.portal_transforms
filename = self.getFilename() filename = self.getFilename()
if mime_type == 'text/html': # if mime_type == 'text/html':
mime_type = 'text/x-html-safe' # mime_type = 'text/x-html-safe'
if src_mimetype != "image/svg+xml": if src_mimetype != "image/svg+xml":
result = portal_transforms.convertToData(mime_type, text_content, result = portal_transforms.convertToData(mime_type, text_content,
object=self, context=self, object=self, context=self,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment