コード例 #1
0
ファイル: views.py プロジェクト: pybest/pybbm
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})
コード例 #2
0
ファイル: views.py プロジェクト: JTLX/pybbm
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})
コード例 #3
0
ファイル: models.py プロジェクト: DanteBortone/pybbm
 def render(self):
     self.body_html = _get_markup_formatter()(self.body, instance=self)
     # 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)
コード例 #4
0
ファイル: models.py プロジェクト: wengole/pybbm
 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
ファイル: models.py プロジェクト: Bishi/VlcWebpage
 def save(self, *args, **kwargs):
     #self.body_html = BaseParser().format(self.body)
     self.body_html = _get_markup_formatter()(self.body)
     super(NewsArticle, self).save(*args, **kwargs)
コード例 #6
0
ファイル: profiles.py プロジェクト: DylannCordel/pybbm
 def save(self, *args, **kwargs):
     self.signature_html = util._get_markup_formatter()(self.signature)
     super(PybbProfile, self).save(*args, **kwargs)
コード例 #7
0
ファイル: views.py プロジェクト: magatz/pybbm
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})
コード例 #8
0
 def save(self, *args, **kwargs):
     self.signature_html = util._get_markup_formatter()(self.signature)
     super(PybbProfile, self).save(*args, **kwargs)