code: def content_preview(self, request):
          
          data = request.POST.get('data', '')
          entry = self.model(content=data)
          return TemplateResponse(
              request, 'admin/zinnia/entry/preview.html',
              {'preview': entry.html_content})
docs: Admin view to preview Entry.content in HTML,
          useful when using markups to write entries.