Convert plain URLs and email addresses in text into HTML links

string:plain_links_to_html_links(STRING $string) : STRING

string:plain_links_to_html_links('This is my link: http://www.example.com.')
#=> "This is my link: <a href=\"http://www.example.com\">http://www.example.com</a>."

string:plain_links_to_html_links('This does not work www.example.com')
#=> "This does not work <a href=\"http://www.example.com\">www.example.com</a>"

string:plain_links_to_html_links('support email: yourfriends@sunsed.com')
#=> "support email: <a href=\"mailto:yourfriends@sunsed.com\">yourfriends@sunsed.com</a>"

Copyright ©2013-2022 SunSed®. All rights reserved.