Yay! Happy customer.
:D
I just put your snippet in my models.py and it works.
from bleach import sanitizer
if "tel" not in sanitizer.BleachSanitizer.allowed_protocols:
sanitizer.BleachSanitizer.allowed_protocols += ["tel"]
I'm not in a position to upgrade Mezzanine due to formal procedures
I did a bit of digging and it's a known issue with the "bleach" library we
use to sanitize HTML:
https://github.com/mozilla/bleach/issues/102
I've added the patch mentioned in the issue and it appears to work:
You may just need to upgrade to 4.1.0. See
https://github.com/stephenmcd/mezzanine/pull/1473.
On Wed, Jul 20, 2016 at 10:18 PM, RandomDude wrote:
> Version: Mezzanine (4.0.1)
>
>
> Mailto before save:
>
> mailto:some...@example.com?Subject=Hello%20again;>Send
> Mail
>
> After
Version: Mezzanine (4.0.1)
Mailto before save:
mailto:some...@example.com?Subject=Hello%20again;>Send
Mail
After save: (works!)
mailto:some...@example.com?Subject=Hello%20again;>Send
Mail
Click to call tel before save:
+1 (303) 499-7111
After save: (href stripped out)
+1 (303) 499-7111