Re: Transform words into links with regex

2011-04-28 Thread Shawn Milochik
You need to use mark_safe. Otherwise Django will be protecting you from potential malicious input. http://docs.djangoproject.com/en/1.3/ref/utils/#django.utils.safestring.mark_safe -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to thi

Transform words into links with regex

2011-04-28 Thread martinez
Hello. I am using Django 1.3 on Windows XP. I read a tutorial and the code below transforms the words like MyLink into a html link. But the output that I achieved is the HTML markups of the link, not the link itself. How to solve that? Thank you. wikilink = re.compile("\\b([A-Z][a-z]+[A-Z][a-z]+)\