Metadata-Version: 1.1
Name: django-evade
Version: 0.1.1
Summary: A Django template filter application for numerically escaping characters in templates
Home-page: https://github.com/richardcornish/django-evade
Author: Richard Cornish
Author-email: rich@richardcornish.com
License: BSD License
Description: Django Evade
        ************
        
        |PyPI version|_ |Build status|_
        
        .. |PyPI version| image::
           https://badge.fury.io/py/django-evade.svg
        .. _PyPI version: https://pypi.python.org/pypi/django-evade
        
        .. |Build status| image::
           https://travis-ci.org/richardcornish/django-evade.svg?branch=master
        .. _Build status: https://travis-ci.org/richardcornish/django-evade
        
        **Django Evade** is a `Django template filter <https://docs.djangoproject.com/en/1.10/howto/custom-template-tags/>`_ application for numerically escaping characters in templates.
        
        It's just like |escape|_, but forces every character to be escaped randomly into either a `decimal or hexadecimal numeric character reference <https://en.wikipedia.org/wiki/Numeric_character_reference>`_ by using a combination of `Unicode conversion <https://docs.python.org/3/library/functions.html#ord>`_ and `string formatting <https://docs.python.org/3/library/string.html#format-specification-mini-language>`_. Useful for obscuring ``mailto`` hyperlinks to prevent spammers from collecting email addresses. Inspired by a `Django snippet <https://djangosnippets.org/snippets/216/>`_.
        
        .. |escape| replace:: ``escape``
        .. _escape: https://docs.djangoproject.com/en/1.10/ref/templates/builtins/#escape
        
        "Evade" sounded like a more severe form of "escape."
        
        * `Package distribution <https://pypi.python.org/pypi/django-evade>`_
        * `Code repository <https://github.com/richardcornish/django-evade>`_
        * `Documentation <https://django-evade.readthedocs.io/>`_
        * `Tests <https://travis-ci.org/richardcornish/django-evade>`_
        
        Install
        =======
        
        .. code-block:: bash
        
           $ pip install django-evade
        
        Add to ``settings.py``.
        
        .. code-block:: python
        
           INSTALLED_APPS = [
               # ...
               'evade',
           ]
        
        Usage
        =====
        
        .. code-block:: html
        
           {% load evade_tags %}
        
           {{ "me@example.com"|evade }}
        
        One possible result:
        
        .. code-block:: html
        
           &#x6d;&#101;&#64;&#x65;&#120;&#x61;&#109;&#x70;&#108;&#101;&#x2e;&#x63;&#111;&#109;
        
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Internet :: WWW/HTTP :: Browsers
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: Site Management
Classifier: Topic :: Utilities
