Replace line returns by <br /> for comments
This commit is contained in:
parent
e795fa1af6
commit
fd65e84b62
|
@ -10,4 +10,4 @@ v0.2 (09/02/2013)
|
|||
|
||||
** Bugs **
|
||||
Escape double quotes in metas tag
|
||||
|
||||
Replace line returns by <br /> for comments
|
||||
|
|
1
views.py
1
views.py
|
@ -688,6 +688,7 @@ def add_comment(request, post_id, parent_id):
|
|||
the_comment = request.POST['the_comment']
|
||||
the_comment = the_comment.replace('<', '<')
|
||||
the_comment = the_comment.replace('>', '>')
|
||||
the_comment = the_comment.replace('\n', '<br />')
|
||||
|
||||
if 'mel' in request.POST:
|
||||
mel = request.POST['mel'].strip()
|
||||
|
|
Loading…
Reference in New Issue
Block a user