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

All 3 Replies

where did you enter your text? in text editor?

Exactly.

Member Avatar for diafol

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.