I have created a filter which wikifies (i.e.  input text of the form *H*ello
*W*orld 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 [email protected].
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