Ver Mensaje Individual
  #1 (permalink)  
Antiguo 26/09/2012, 21:38
minombreesmm
 
Fecha de Ingreso: agosto-2012
Ubicación: M.
Mensajes: 2.031
Antigüedad: 11 años, 8 meses
Puntos: 52
Por que me borra los enters? problema con funcion limpiar php

esta es mi funcion

Código PHP:
Ver original
  1. <? function cleanString($string)
  2. {
  3.     $string=trim($string);
  4.     $string=mysql_escape_string($string);
  5.     $string=htmlspecialchars($string);
  6.     $string=htmlspecialchars($string, ENT_QUOTES);
  7.     $string=htmlentities($string);
  8.     $string = strip_tags($string);
  9.     return $string;
  10. }
  11. ?>

y si limpio la cadena larga que contiene enters y todo eso.
al mostrarla en un echo, no me muestra los enters que incluye, a que se debe?