A Django template filter application for numerically escaping characters in templates
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django-evade-0.1.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for django_evade-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fab6c6825cf51a0e2c5f73a0a72b17417418e9ed484e0624669d43db645d165 |
|
MD5 | 92d5cc11cbc4df2083e7744a1b30f2fc |
|
BLAKE2b-256 | ef78ee9428ee65619457c9e7e85687fd1d217bfe28d71817c92a19615fad002e |