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
if not self.hasConversion(**kw):
portal_transforms = portal.portal_transforms
filename = self.getFilename()
if mime_type == 'text/html':
mime_type = 'text/x-html-safe'
# if mime_type == 'text/html':
# mime_type = 'text/x-html-safe'
if src_mimetype != "image/svg+xml":
result = portal_transforms.convertToData(mime_type, text_content,
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