2012-10-23 66 views
0
$str="hi this http://google.com <a href="http: 
//yahoo.com">http://yahoo.com</a>"; 

我想http://google.com轉換爲可點擊的鏈接在上面的字符串,但我不希望轉換已經錨文本&錨的href。如何將網址替換爲除錨文本和錨點href之外的可點擊鏈接?

我怎樣才能實現使用PHP/JavaScript的那一個?

+2

它被稱爲鏈接。見http://buildinternet.com/2010/05/how-to-automatically-linkify-text-with-php-regular-expressions/ – Prasanth

+0

你不應該寫**「關心和kK」** –

+0

你可以檢查一次我的要求正好..我只是修改那一個? –

回答

相關問題