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.2.tar.gz
(3.3 MB
view hashes)
Built Distribution
Close
Hashes for django_evade-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04953a6b03b417e412e70318c8ff87f1e6f08aa0c875b8a5f7dd55cd0bc8ff62 |
|
MD5 | a60c52d34b00cf69dfddcf64c9b3e89b |
|
BLAKE2b-256 | e0790ed14eaa4f8285689679f1aefdae2f761254f8cf139b5eb0bd68751c41b6 |