PHP parse url, mailto, and also twitter’s usernames and arguments


/ Published in: PHP
Save to your folder(s)

This small function receive a text as input and returns an html text with links if the source text contains urls (http://www… but also ftp://… and every other protocol), emails, twitter’s usernames (with @ at the beginning) and also twitter tags (with # at the beginning).

URL: http://www.barattalo.it/2010/03/10/php-parse-url-mailto-and-also-twitters-usernames-and-arguments/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.