core/libs/filter/base_filter/addslashes_filter.php
<?php
/**
* KumbiaPHP web & app Framework
*
* LICENSE
*
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.
*
* @category Kumbia
* @package Filter
* @subpackage BaseFilter
*
* @copyright Copyright (c) 2005 - 2023 KumbiaPHP Team (http://www.kumbiaphp.com)
* @license https://github.com/KumbiaPHP/KumbiaPHP/blob/master/LICENSE New BSD License
*/
/**
* Filtra una cadena haciendo addslashes
*
* @category Kumbia
* @package Filter
* @subpackage BaseFilter
*/
class AddslashesFilter implements FilterInterface
{
/**
* Ejecuta el filtro
*
* @param string $s
* @param array $options
*/
public static function execute($s, $options)
{
return addslashes((string) $s);
}
}