/ Published in: Other

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php // Making links clickable with PCRE in PHP // http://jeremy.visser.name/2007/08/06/making-links-clickable-with-pcre-in-php/ $clickable = preg_replace('*https?://[A-Za-z0-9./?=+&%]+*', '<a href="$0">$0</a>', $input); ?>
Comments
