Automatically convert URLs to hyperlinks in answers/comments

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
eanderson
Posts: 3
Joined: Fri Jun 24, 2016 5:23 pm

Automatically convert URLs to hyperlinks in answers/comments

Post by eanderson »

Does functionality exist today to automatically convert a URL in answer or comment to a clickable link?

E.g., Answer text is: "Product is supported in version 2.0 and above. For more information, go to http://www.example.com/"

This answer, when displayed to users' browsers, could actually read "Product is supported in version 2.0 and above. For more information, go to <a href="http://www.example.com/" target="_blank">http://www.example.com/</a>".

I have tried doing some customization with preg_replace() but was wondering if there is built-in functionality in phpMyFAQ. If not, I can submit a feature request for this functionality (I even see an option on this message board to automatically parse URLs!)

Thanks!
Thorsten
Posts: 15561
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: Automatically convert URLs to hyperlinks in answers/comm

Post by Thorsten »

Hi,

no, this feature is not implemented yet. You can add a feature request here https://github.com/thorsten/phpMyFAQ/issues

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply