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 Oct. 30, 2022, 1:21 p.m. EST