Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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.”

Install

$ pip install django-evade

Add to settings.py.

INSTALLED_APPS = [
    # ...
    'evade',
]

Usage

{% load evade_tags %}

{{ "me@example.com"|evade }}

One possible result:

me@example.com

Release history Release notifications

This version
History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
django_evade-0.1.3-py2.py3-none-any.whl (6.1 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Jul 17, 2017
django-evade-0.1.3.tar.gz (3.3 MB) Copy SHA256 hash SHA256 Source None Jul 17, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page