def format(self, text, instance=None): if instance and instance.pk: text = self.format_attachments( text, attachments=instance.attachments.all()) return smile_it(self._parser.convert(text))
def format(self, text): return smile_it(self._parser.format(text))
def format(self, text, instance=None): if instance and instance.pk: text = self.format_attachments(text, attachments=instance.attachments.all()) return smile_it(self._parser.convert(text))
def format(self, text): return urlize(smile_it(self._parser.convert(text)))