Tutorials References Exercises Bootcamp Menu
Sign Up Create Website Get Certified Pro

Template Filter - phone2numeric


Display the actual phone number:

<h1>{{ phone|phone2numeric }}</h1>
Run Example »

Definition and Usage

The phone2numeric filter converts any letter in a phone number like into the actual numeric phone number.

E.g. "555-automobile" becomes 555-288662453.


Template filters are defined by using a pipe | character followed by the name of the filter.

{{ value|phone2numeric }}