djangosnippets.org: Latest snippets posted by onelsonhttps://djangosnippets.org/users/onelson/2010-04-09T14:28:29.934144-05:00onelsonplaintext filter
2010-04-09T14:28:29.934144-05:00onelsonhttps://djangosnippets.org/snippets/1980/<p>Inspired by this <a href="http://www.ghastlyfop.com/blog/2008/12/strip-html-tags-from-string-python.html">terse blog post</a>.</p>
<p>This filter was designed to simplify the stripping out of all (x)html in a given template var, while preserving some meta information from anchor, and image tags.</p>
<p>Why is this even useful? If you have pre-assembled portions of templates, or model fields containing …</p>
Freely redistributable