sanitize

Una vez hecho eso, puedes hacer llamadas estáticas a Sanitize.
Once you've done that, you can make calls to Sanitize statically.
Una vez hecho eso, puedes hacer llamadas estáticas a Sanitize.
Once you've done that, you can make calls to Sanitize statically. paranoid¶
Todo lo que necesitas hacer es incluir la librería del núcleo Sanitize (p.ej.
All you need to do is include the Sanitize core library (e.g.
La clase Sanitize de CakePHP puede ser usada para eliminar datos maliciosos y otra información no deseada desde los datos enviados por un usuario.
The CakePHP Sanitize class can be used to rid user-submitted data of malicious data and other unwanted information.
Sanitize es una librería del núcleo, por lo que puede ser usada en cualquier parte de tu código, pero probablemente será mejor usada en los controladores y modelos.
Sanitize is a core library, so it can be used anywhere inside of your code, but is probably best used in controllers or models.
En el codigo anterior usamos el método TextHelper::stripLinks() y algunos pocos métodos de la clase Sanitize, pero recomendamos escribir un helper especializado para dejar el texto realmente limpio.
In the code above we use the TextHelper::stripLinks() method and a few methods from the Sanitize class, but we recommend writing a comprehensive text cleaning helper to really scrub the text clean.
Lo anterior hará que la clase Sanitize esté disponible para su uso.
The above would make the Sanitize class available for use.
Palabra del día
el portero