Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/09/2010, 21:35
apustilnik
 
Fecha de Ingreso: septiembre-2009
Mensajes: 402
Antigüedad: 14 años, 8 meses
Puntos: 6
Respuesta: Problema NO resuelto

exelente!!! mil gracias por la respuesta, solucion perfecta!
paso como lo hice por si a alguien le sirve:
---------------------------------------------------------------------------
function makeClickableLinks($text) {
$text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
'<a href="\\1">\\1</a>', $text);
$text = eregi_replace('([[:space:]()[{}])(www.[-a-zA-Z0-9@:%_\+.~#?&//=]+)',
'\\1<a href="http://\\2" target="_blank">\\2</a>', $text);
$text = eregi_replace('([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3})',
'<a href="mailto:\\1">\\1</a>', $text);
return $text;
}
$width= 50;
$break= "<br />\n";
$cut= true;
echo makeClickableLinks(wordwrap($text, $width, $break, $cut))
------------------------------------------------------------------------------
muchas gracias, saludos, ariel

Cita:
Iniciado por claudiovega Ver Mensaje
No se lo apliques al link, si no al texto del link. Es decir, dentro de la función makeClickableLinks, pero solo al texto: <a>a este texto</a>