Skip to main content

A Django template filter application for numerically escaping characters in templates

Project description

PyPI version Build status

Django Evade is a Django template filter 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 by using a combination of Unicode conversion and string formatting. Useful for obscuring mailto hyperlinks to prevent spammers from collecting email addresses. Inspired by a Django snippet.

“Evade” sounded like a more severe form of “escape.”


$ pip install django-evade

Add to

    # ...


{% load evade_tags %}

{{ ""|evade }}

One possible result:

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-evade, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size django_evade-0.1.3-py2.py3-none-any.whl (6.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-evade-0.1.3.tar.gz (3.3 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page