Cheers, > i want to display a snippet of data from a html source, and i want to > strip it of html because an unclose tag will make the rest of the page > look like You have the striptags tag: http://www.djangoproject.com/documentation/templates/#striptags
You can also access the function from outside the templates. It is in: django/utils/html.py: def strip_tags(value): "Returns the given HTML with all tags stripped" return re.sub(r'<[^>]*?>', '', value) Hope it helps, G --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---