![]() |
Format tel hyperlink - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: General (https://python-forum.io/forum-1.html) +--- Forum: Code sharing (https://python-forum.io/forum-5.html) +--- Thread: Format tel hyperlink (/thread-9258.html) |
Format tel hyperlink - 3115Tech - Mar-29-2018 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 ![]() 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") RE: Format tel hyperlink - 3115Tech - Mar-30-2018 Will do |