CodeIgniter Forums
auto_link with String - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forum-29.html)
+--- Thread: auto_link with String (/thread-77527.html)



auto_link with String - MikiStoni - 09-11-2020

Hello everyone. 

A cool function: auto_link. 

https://codeigniter.com/user_guide/helpers/url_helper.html

But I can't give a string <a href="">STRING</a> so it's almost useless. Maybe in a next version? 

Greetings, Mike


RE: auto_link with String - MGatner - 09-12-2020

How would you propose this works? auto_link can convert multiple URLs in a giant block of text - there doesn’t seem to me an easy way to add display strings. If you have a solution you are welcome to open a pull request on GitHub.