On Thu, 2009-04-30 at 15:35 -0700, Brandon wrote: > I want to have a message board type program which will only allow html > tags which are in a specified list. How can I accomplish such a feat > with the django template system? I want to find a way before trying to > write my own template tags.
There's no default tag to do anything like that. There might be a third-party tag -- search for words like "HTML whitelisting" along with words like "Django" to find an overlap. I wouldn't be too surprised if you had to write your own tag for this (I personally wouldn't use a tag, but just do it in a Pythong function before storing the data). Whichever way you do it, the module you'll want to use is html5lib, which has the best support for HTML whitelisting of pretty much anything out there. Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---