mirror of https://github.com/zulip/zulip.git
models: Disable markdown (escaping instead) for now.
(imported from commit e92920919cd5d0ef11a478be5a0f8a108b62fff9)
This commit is contained in:
parent
2d1e072896
commit
6cff3dc735
|
@ -21,6 +21,7 @@ import time
|
|||
import subprocess
|
||||
import traceback
|
||||
import re
|
||||
from django.utils.html import escape
|
||||
|
||||
MAX_SUBJECT_LENGTH = 60
|
||||
|
||||
|
@ -452,7 +453,8 @@ class Message(models.Model):
|
|||
gravatar_hash = gravatar_hash(self.sender.user.email))
|
||||
|
||||
if apply_markdown:
|
||||
obj['content'] = bugdown.convert(self.content)
|
||||
# obj['content'] = bugdown.convert(self.content)
|
||||
obj['content'] = escape(self.content)
|
||||
obj['content_type'] = 'text/html'
|
||||
else:
|
||||
obj['content'] = self.content
|
||||
|
|
Loading…
Reference in New Issue