防止 Skype 突出显示损坏文本区域 [英] Prevent skype highlighting from corrupting textareas
问题描述
简而言之,在安装了 Skype 插件的情况下,以编程方式填充电话号码的文本区域会生成突出显示的标签.
In short, a text area programatically populated with a phone number in it, with the Skype plugin installed, produces the highlighting tags.
因此,
(418) 555-1234
变成
begin_of_the_skype_highlighting (418) 555-1234 end_of_the_skype_highlighting
如果那个字符串被放在textarea中,Skype高亮将把它再次封装起来,无限.
And if that string is put inside the textarea, the Skype highlighting will encapsulate it again, Ad infinitum.
你如何防止这种情况发生?
How do you prevent that?
推荐答案
你应该看看 http://forum.skype.com/index.php?showtopic=96959&st=0
看起来是一个已报告的错误,但直到现在还没有解决.
Looks like it is a reported bug, but not solved until now.
建议使用元标记(这似乎不适用于所有 Skype 插件)
Suggestions are to use a meta tag (which seems to not work across all Skype plugins)
<meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />
引入一个不可见的字符,它将打破用于识别电话的 Skype 算法
Introduce a non visible character that will break the skype algorithm for identifying phones
+123 456<span style="display:none;">_</span> 789
(虽然这不能用于 textareas)
当然,如果问题出在您自己访问该页面时,请禁用该插件.
And of course disable the plugin, if the issue is with your own access to that page.
更新
检查http://www.jsfiddle.net/gaby/Qy7uw/中的两个例子中是否有任何一个工作.(我没有Skype可以查看)
Check if any of the two examples in http://www.jsfiddle.net/gaby/Qy7uw/ work. (i do not have skype to check)
我正在使用零宽度连接器 ‍
和熟悉的
>
I am using the zero-width-joiner ‍
and the familiar
这篇关于防止 Skype 突出显示损坏文本区域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!