On 3 May 2010 00:34, Magal, Ganesh <ganeshma...@gmail.com> wrote: > I have created a filter which wikifies (i.e. input text of the form > HelloWorld to an output with rendered font like say - HelloWorld ). The > problem is that when I apply the filter, it is not getting rendered. Below > is the code for the filter and the output text in HTML > > CODE: > from django import template > import re > wikilink=re.compile("\\b([A-z][a-z]+[A-Z][a-z]+)\\b") > register= template.Library() > @register.filter > def wikify(value): > return wikilink.sub(r"<u><b>\1</b></u>", value) > > > OUTPUT: > <u><b>HelloWorld</b></u> > > Without any style. Can you please help in finding where I am making a > mistake. > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "Django users" group. > To post to this group, send email to django-us...@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. >
{% wikify|safe %} ? http://docs.djangoproject.com/en/dev/ref/templates/builtins/#safe -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.