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).


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.