Hi,

On Jan 15, 4:38 pm, Francis <[EMAIL PROTECTED]> wrote:
> Is it possible to render a text version of a html template with
> render_to_response
> I would like to use only one template, and tha the text version just
> discard all the html tag

You've a couple of options:

1. See a simple html to text convertor in Python here:
http://mail.python.org/pipermail/python-list/2004-November/291562.html

2. Store your original content in text format that's compatible with
Markdown, Textile, or Restructured Text. Then apply the appropriate
filter (markdown, textile) to convert the text to HTML.

-Rajesh D
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to