phone2numeric Filter

String

Documentation

Converts letters to numbers for a phone number.

Variable

tel = '877-WEBUCAT'

Template

{{ tel|phone2numeric }}

Result

877-9328228

Commentary

A bit gimmicky, but OK.


Did we get something wrong? Is there a use case for the phone2numeric filter that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on April 14, 2020, 9:50 a.m. EST