I have users inputting text like My website is facebook.com
. How I can convert the URL to a link so the user can click URL to be redirected to facebook.com
?
Input:
My website is facebook.com
Output (expected):
My website is <a href="https://www.facebook.com/">facebook.com</a>
Anyone can help? Thank you in advance.