You've got to decide what you want to allow. If the users are trusted
you could allow them to input HTML, then you have to make sure its
marked as safe so the HTML is not escaped.[1]

Alternatively you could use a markup language that can be converted to
HTML.[2]

If you just want the newlines, you can convert them to HTML.[3]

Finally, theres a variety of different options for rich text editors,
for example django-tinymce[4]

1. http://docs.djangoproject.com/en/dev/ref/templates/builtins/#safe
2. http://docs.djangoproject.com/en/dev/ref/contrib/#ref-contrib-markup
3. http://docs.djangoproject.com/en/dev/ref/templates/builtins/#linebreaks
4. http://code.google.com/p/django-tinymce/

--

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