def get_content(self): return mark_safe(urlize(markdown.markdown(self.body, safe_mode='escape')))
def markdown_preview(request): data = request.POST.get('data', '') data = urlize(markdown.markdown(data, safe_mode='escape')) return {'data': data}
def get_content(self): return mark_safe( urlize(markdown.markdown(self.body, safe_mode='escape')))