Menu
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

Template Filter - phone2numeric


Example

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.


Syntax

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

{{ value|phone2numeric }}