1
2
3
<?php
$input = preg_replace("/(www\.|http:\/\/)([^\s]+)/", '<a href="http://$1$2" target="_blank">$1$2</a>', $input);
?>

PHP On Replace user input with link

by shtruc, January 08, 2008 22:35 Star_fullStar_fullStar_full

If i understand correctly, ...

C2eee2044eac9c9b7f7d952bd3a7c6fc Talk
1
2
3
function showEMail() {
   document.write('<a href="mailto:' + 'myemail' + '&#64;' + 'domain' + '.com' + '" >' + 'myemail' + '&#64;' + 'domain' + '.com' + '</a>');
}

JavaScript On Anti-spam Mailto

by shtruc, January 08, 2008 13:12

Why bother with arrays. Ema...

C2eee2044eac9c9b7f7d952bd3a7c6fc Talk