cehdeti / pyeti

A Python package of awesome stuff.
MIT License
0 stars 0 forks source link

[Bug] Obfuscate is having trouble parsing some characters? #11

Closed suchermon closed 2 years ago

suchermon commented 2 years ago

https://github.com/cehdeti/pyeti/blob/7f239a8945fa43a7f3f78063e63aa9fa09829953/pyeti/eti_django/templatetags/email.py#L12

image
theunraveler commented 2 years ago

In your template, h31lo@world.comm is interpreted as a variable named h31lo@world.comm, not the string "h31lo@world.comm". If you want to obfuscate the string "h31lo@world.comm", you'd need to do this:

{{ "h31lo@world.comm"|obfuscate_email }}