【问题标题】:How to replace the urls into clickable links except anchor text & anchor href?如何将网址替换为除锚文本和锚href之外的可点击链接?
【发布时间】:2012-10-13 02:07:50
【问题描述】:
$str="hi this http://google.com   <a href="http:
//yahoo.com">http://yahoo.com</a>";

我想将http://google.com 转换为上述字符串中的可点击链接,但我不想转换锚文本和锚href。

我怎样才能使用 php / javascript 实现这一目标?

【问题讨论】:

标签: php javascript


【解决方案1】:

你可以使用auto link function来做这种事情

【讨论】:

    猜你喜欢
    • 2019-04-12
    • 2020-02-03
    • 1970-01-01
    • 2019-10-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多