Commit 7cc4d9ff authored by Jérome Perrin's avatar Jérome Perrin

hack: do not force safe html

parent 0e2352aa
...@@ -155,8 +155,8 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin, ...@@ -155,8 +155,8 @@ class TextDocument(CachedConvertableMixin, BaseConvertableFileMixin,
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