示例#1
0
 def save(self, *args, **kwargs):
     self.signature_html = util._get_markup_formatter()(self.signature)
     super(PybbProfile, self).save(*args, **kwargs)
示例#2
0
文件: models.py 项目: ediaz1/tendenci
 def render(self):
     self.body_html = _get_markup_formatter()(self.body)
     # Remove tags which was generated with the markup processor
     text = strip_tags(self.body_html)
     # Unescape entities which was generated with the markup processor
     self.body_text = unescape(text)
示例#3
0
 def save(self, *args, **kwargs):
     self.signature_html = util._get_markup_formatter()(self.signature)
     super(PybbProfile, self).save(*args, **kwargs)
示例#4
0
 def render(self):
     self.body_html = _get_markup_formatter()(self.body)
     # Remove tags which was generated with the markup processor
     text = strip_tags(self.body_html)
     # Unescape entities which was generated with the markup processor
     self.body_text = unescape(text)
示例#5
0
文件: views.py 项目: goetzk/tendenci
def post_ajax_preview(request):
    content = request.POST.get('data')
    html = util._get_markup_formatter()(content)
    return render(request, 'pybb/_markitup_preview.html', {'html': html})
示例#6
0
文件: views.py 项目: morad7/tendenci
def post_ajax_preview(request):
    content = request.POST.get('data')
    html = util._get_markup_formatter()(content)
    return render(request, 'pybb/_markitup_preview.html', {'html': html})