djangosnippets.org: Latest snippets tagged with 'chars'http://djangosnippets.org/tags/chars/2007-10-13T16:02:47.706784-05:00TruncateChars
2007-10-13T16:02:47.706784-05:00Avealhttp://djangosnippets.org/snippets/444/<p><strong>Usuage:</strong>
{{ comment.comment|truncatechars:20 }}</p>
<p><strong>Why to use:</strong>
First of all, my english isn´t the best. I hope you will understand my text anyways :)</p>
<p>Ok, I had a problem with some "kiddies" posting huge comments like </p>
<p>"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaahhhhhhhhhhhhhhhhhhh this game rooooooooooocks!!!!!!!!!!!!!!!!". </p>
<p>Django has no function to "kill" that huge words within …</p>
Freely redistributable