johntynan / django-newsroom

Automatically exported from code.google.com/p/django-newsroom
Other
0 stars 0 forks source link

custom template filter for html output #27

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
we should consider writing a centalized filter that all the text fields use for 
output.

A basic filter that allows some html tags and attributes and does 
linebreaks/paragraph tags 
automatically.  Rather than using some type of markdown language, I think we 
should just use 
html.  We can make that a prerequisite to using the system, ability to basic 
html.

so then in the template we should have something along the lines of :

{{ object.summary|filter_html }} 

Original issue reported on code.google.com by mand...@gmail.com on 7 Apr 2009 at 8:10

GoogleCodeExporter commented 9 years ago

Original comment by jgty...@gmail.com on 13 Apr 2009 at 11:19