简体   繁体   English

在iPhone中创建短信超链接

[英]create hyperlink in sms in iPhone

Is it possible to create a hyperlink in an sms in an iPhone? 是否可以在iPhone中的短信中创建超链接?

For example, if I want the word 'foo' hyperlinked in HTML then I'll write <a href="http://foo.com">foo</a> in a normal situation. 例如,如果我想在HTML中使用'foo'这个词进行超链接,那么我会在正常情况下编写<a href="http://foo.com">foo</a>

If I want to have a certain word in my sms to be hyperlinked to something, is there any way I can do this? 如果我希望在我的短信中有一个单词可以链接到某个东西,有什么方法可以做到这一点吗? Like "I have a <a href="http://foo.com">surprise</a> for you" and the receiver taps on the hyperlinked word 'surprise' which will take the user to the destined page. 就像“我有一个<a href="http://foo.com">surprise</a> ”,接收器点击超链接的单词'surprise',它将把用户带到目标页面。

Any suggestions as to how this can be done? 有关如何做到这一点的任何建议? Examples and samples welcome! 欢迎举例和样品!

Thanks in advance :) 提前致谢 :)

No, you cannot use html tags in sms / text messages. 不,你不能在短信/短信中使用html标签。 All you can do is insert the URL without the tag. 您所能做的就是插入没有标记的URL。 It then depends on the receivers device whether the URL is presented to the user as link or as plain text. 然后,它依赖于接收器设备是否将URL作为链接或纯文本呈现给用户。

I experimented with exactly this just yesterday. 我昨天才对此进行了实验。 It seems you can't include a nicely formatted hyperlink, unfortunately. 不幸的是,似乎你不能包含一个格式很好的超链接。 I hope to be proven wrong by somebody else, though :-) 我希望被其他人证明是错的,但是:-)

However, as you've probably seen yourself, iPhone is able to recognize an URL and you can tap on it to open the URL in Safari (or tap the disclosure button next the message to get more options on what to do with the URL). 但是,正如您可能已经看到的那样,iPhone可以识别URL,您可以点击它以在Safari中打开URL(或点击消息旁边的披露按钮以获取有关如何处理URL的更多选项) 。 As far as I can tell the only thing you can do is format your SMS accordingly: " I have a surprise for you: http://foo.com " even though that might spoil the surprise ;-) 据我所知,你唯一可以做的就是相应地格式化你的短信:“ 我有一个惊喜: http//foo.com ”尽管这可能会破坏惊喜;-)

i don't think it's possible to create hyperlinks in SMS. 我不认为可以在SMS中创建超链接。

The only way is to send an URL, and the iPhone will convert it to a link... 唯一的方法是发送一个URL,iPhone将其转换为链接...

Use a tiny url from tinyurl . 使用tinyurl的小网址。 It doesn't allow you to do exactly what you are wanting but it at least can be used to cover up the long link. 它不允许你完全按照自己的意愿行事,但它至少可以用来掩盖长链接。 This is the closest thing I figure out to do. 这是我最接近的事情。 I was wanting to use the " 我想用“

No, you can't do this due to privacy issues. 不,由于隐私问题,您不能这样做。 Apple thinks that giving you this ability would allow you to link users to malware and such. Apple认为,为您提供此功能将允许您将用户链接到恶意软件等。 Sorry! 抱歉!

No, you can not do this. 不,你不能这样做。 However you could use tinyurl and format it like this http://whateverYouWantToSay@tinyurl.com Web browsers usually ignore anything before an @ therefore you could effectively hide the actual site being linked to, as long as your friend does not know that. 但是您可以使用tinyurl并将其格式化为http://whateverYouWantToSay@tinyurl.com Web浏览器通常会在@之前忽略任何内容,因此只要您的朋友不知道,您就可以有效地隐藏链接到的实际网站。

What actually happens is the data before the @ is submitted to the web site in the form username:password . 实际发生的是@之前的数据以username:password的形式提交到网站。 However it must be a site that requires authentication to access, or the site will normally just ignore it. 但是,它必须是需要身份验证才能访问的站点,否则站点通常会忽略它。

If this helps, I've noticed that a custom hyperlink is possible on the OS X Messages app, but they have to be copied and pasted. 如果这有帮助,我注意到OS X消息应用程序上可以使用自定义超链接,但必须复制和粘贴它们。 To replicate this right click on a hyperlink in your browser and hit copy link. 要复制此权限,请右键单击浏览器中的超链接并点击复制链接。 Then paste into Messages. 然后粘贴到消息中。

Uhhh this is possible here is a screenshot of an example - I copied a link from email and pasted in a new SMS - though it appears you cannot type html to create a link.... 呃这是可能的,这是一个例子的截图 - 我从电子邮件复制了一个链接并粘贴在一个新的短信 - 虽然看起来你不能输入HTML来创建一个链接.... 在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM