# phonenumber (13r2 or higher)

// readPhoneNumber var text = "+49 (0) 1234 5678 - 9"; var num = innovaphone.phonenumber.readPhoneNumber(text); document.getElementById("out").innerHTML = num + "<br/>"; text = "000 49 (0) 1234 5678 - 9"; num = innovaphone.phonenumber.readPhoneNumber(text, "000"); document.getElementById("out").innerHTML += num + "<br/>";

## innovaphone.phonenumber

A library that contains various functions related to phone numbers.

readPhoneNumber(text, prefixIntl)
  Converts a text presentation of a phone number into a dialable phone number.
  E.g. +49 (0) 1234 5678 - 9 is turned into +49123456789