djangosnippets.org: Latest snippets posted by ronniehttps://djangosnippets.org/users/ronnie/2011-11-30T13:29:47.042092-06:00ronnieActive link
2011-11-30T13:29:47.042092-06:00ronniehttps://djangosnippets.org/snippets/2617/<p>I needed a way to find if a menu items should be active. After searching the internet i found a few options*, but none of them did fit my needs, so i wrote my own:</p>
<p>Usage:
<a href="{% url 'view-name' %}"></a></p>
<ul>
<li>http://gnuvince.wordpress.com/2008/03/19/the-new-and-improved-active-tag/</li>
<li>http://stackoverflow.com/questions/340888/navigation-in-django</li>
</ul>
Freely redistributableHTML5 filter for XXS
2011-05-20T15:55:38.390186-05:00ronniehttps://djangosnippets.org/snippets/2444/<p>Usefull for TinyMCE, to allow some HTML but be vunarable by XXS attacks</p>
<p>You need to install html5lib</p>
<p>sudo easy_install html5lib</p>
Freely redistributable