Req #9789 [NEW]: feature request - makelinks() function

From: Date: Tue, 09 Jan 2007 22:16:37 +0000
Subject: Req #9789 [NEW]: feature request - makelinks() function
Groups: php.pear.webmaster 
Request: Send a blank email to pear-webmaster+get-5572@lists.php.net to get a copy of this message
From: pgl at instinct dot org Operating system: All and any Package version: PHP version: 5.2.0 Package: PEPr Bug Type: Feature/Change Request Bug description: feature request - makelinks() function Description: ------------ Re: http://bugs.php.net/bug.php?id=6893 Last comment (from bjori@php.net) was: "Please file PEAR/PECL related issues in the PEAR/PECL bug tracker." So, I am doing so. Here is the original bug report / feature request: --8<-- I don't know if this is the best way to submit a feature request, but I think it would be handy to have a builtin makelinks() function, to change all urls in a piece of text to actual links. eg, changing "my homepage is at http://www.arse.net/" to "my homepage is at <a href=http://www.arse.net/>http://www.arse.net/</a>". 'course, it's pretty easy to code this yourself, but then so is nl2br(), and having it as part of the source would (maybe?) make it faster. --8<-- Cheers, - Peter PS: Apologies if this is not the correct area to submit feature requests. It wasn't clear from http://pear.php.net/bugs/ where was the best place. Test script: --------------- <? $txt = "Hi! My homepage is at http://pgl.yoyo.org/."; $html = makelinks($txt); echo $html /* Outputs: --8<-- Hi! My homepage is at <a href="http://pgl.yoyo.org/">http://pgl.yoyo.org</a>. --8<-- */ ?> Expected result: ---------------- Hi! My homepage is at <a href="http://pgl.yoyo.org/">http://pgl.yoyo.org</a>. -- Edit bug report at http://pear.php.net/bugs/bug.php?id=9789&edit=1 --

« previous php.pear.webmaster (#5572) next »