important note about Typogrify's handling of
autoecaping: All typogrify filters (except for the new titlecase) mark
their output as "safe". This means you should only use them on input you
trust or have cleaned somehow. if you'd like to use them on user
content like comments please run them through |force_escape or
|markdown:"safe" on them first.
Please use version 0.2 if you're still on Django 0.96.
A demonstration of everything it does explains better than I do.
But here's the quick list of the included filters:
Or grab the latest release.
from http://code.google.com/p/typogrify/
Please use version 0.2 if you're still on Django 0.96.
About Typogrify
Typogrify is a collection of Django template filters that help prettify your web typography by preventing ugly quotes and widows and providing CSS hooks to style some special cases.A demonstration of everything it does explains better than I do.
But here's the quick list of the included filters:
- Widon't
- SmartyPants
- Initial quotes wrapped in class='dquo' or class='quo' depending on if they are single or double
- Ampersands wrapped in class='amp'
- Multiple adjacent capital letters wrapped in class='caps'
- A lazy crazy filter to do all of them
- A titlecase filter that uses Stuart Colville's port of John Gruber's titlecase.pl
Or grab the latest release.
from http://code.google.com/p/typogrify/