動的に出力されるテキストの中にリンクを張りたい場合は、DBにHTMLタグを入れるよりも、独自のタグで実装するよりも、下記の方法がお手軽です。
▼ソース
$text = "URLがはいってたらhttp://www.google.co.jp/勝手にリンクをはる";
$patterns = array("/(https?|ftp)(:\/\/[[:alnum:]\+\$\;\?\.%,!#~*\/:@&=_-]+)/i");
$replacements = array("<a href=\"\\1\\2\">\\1\\2</a>");
$text = preg_replace($patterns, $replacements, $text);
▼結果
URLがはいってたら<a href="http://www.google.co.jp/">http://www.google.co.jp/</a>勝手にリンクをはる