View file xmyx.ru/sys/fnc/_hashtag.php
<?
function hashtag($tagg)
{
$tagg = preg_replace("/@([\S']+)/", "<a href='/search/?c=statuses&q=@\\1'>@\\1</a>", $tagg);
return str_replace("\n", "<br />", $tagg);
}
function no_tags($mes)
{
$mes = str_replace("<br />", "\r\n", $mes);
return $mes;
}
?>