Python Forum
Format tel hyperlink
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Format tel hyperlink
#1
Here is a simple code snippet to format a tel hyperlink. this will display just the phone number otherwise it just prints out the whole <a href. Enjoy Smile
 
phoneNum = "1-999-555-1212"
phoneLink = "<a href='tel:19995551212'>" + phonNum + "</a>" 
#then we do this its for an mms app using Twilio
client.api.account.messages.create(
        to=number, from_= myTwilioNum,
        body="BlahBlah" + phoneNum + " more stuff: \n" +  someData + "\n" + someMoreData,
        media_url= "some.png") 
Reply
#2
Will do
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020