Hello everybody.
Do you know how to translate URLs in a text automatically??
I mean I want it just like the option below the page of creating a new thread in this website.. That option makes the written URLs in the thread appear as clickable links.
Thanks in advance.

Recommended Answers

where did you enter your text? in text editor?

Jump to Post

All 3 Replies

where did you enter your text? in text editor?

Exactly.

Member Avatar

You need to use preg_replace or similar function.

1. detect url
2. replace with tags/attributes/label

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.