On Mar 19, 8:35 am, Tor Nordam <tor.nor...@gmail.com> wrote:
> I'm currently writing a blog application in django, and a part of what
> I want to do is allow some HTML in posts and comments. I discovered
> yesterday, more or less by accident, that the markdown filter actually
> allows some HTML.

Are you using it in "safe" mode? If you specifiy safe=True it will
strip out HTML.

http://www.freewisdom.org/projects/python-markdown/Using_as_a_Module

Read the source code in django/contrib/markup/templatetags/markup.py
to see how Django integrates the Python Markdown module and what you
need to do to use "safe" mode.

Regards,
BN

-- 
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.


Reply via email to