Hi, I think there is no such filter, so you'll have to code it. This http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#filters-and-auto-escapingmay help
HTH, Matias. On Tue, Aug 25, 2009 at 5:54 AM, When ideas fail <andrewkenyon...@gmail.com>wrote: > > Thanks, can i strip out all tags other than <a> tags. > > I would like people to be able to put links in comments. > > Andrew > > On 25 Aug, 03:42, Parag Shah <adapti...@gmail.com> wrote: > > Hi, > > > > You can use the strip_tags function to strip all html from text. > > > > from django.utils.html import strip_tags > > > > In your view > > comment = strip_tags(request.POST["comment"]) > > > > -- > > Regards > > Parag > > > > On Tue, Aug 25, 2009 at 4:25 AM, When ideas fail > > <andrewkenyon...@gmail.com>wrote: > > > > > > > > > Hello, i want to allow users to post comments and I don't want them to > > > be allowed to put html in comments. > > > > > However I would like the to be able to use paragraph p tags and <a> > > > tags but not anything other. Could someone tell me how to do this? > > > > > Thanks > > > > > Andrew > > > > -- > > Thanks & Regards > > Parag Shahhttp://blog.adaptivesoftware.biz > > > -- :wq --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---