2017-02-11 96 views
1

i want to add <a href=""> to all textlink which i missed add <a href=""> when i submit post.如何替換所有文字鏈接並添加<a href> tag using php?

Ex:

<a href"http://google.com">google.com</a> and https://paypal.com 

And i just want to add <a href=""> for text https://paypal.com which i missed add <a href="">

Thanks!

+1
+0

it works! Thank you so much Roman. –

+0

Just one more problem. I tried with this string: 'google.com和https:// paypal.com' 和輸出: 'http://google.org「target =」_ blank「> google.org和https://paypal.com ' 我怎樣才能解決這個問題? –

+0

剛剛更新內容! –