I want when the user inserts "www". in the comment textarea, the address is from "www." until the first place is replaced by a link to this address:
"I love www.google.com"
turns into
"I love <a href="www.google.com">www.google.com</a>"
Could you tell me how to do this? (Beginner)
(sorry to post the previous question, I still don't quite understand).
Should i use preg_match_all()?
source
share