/** * @inheritdoc */ public function sanitize($input) { return is_string($input) ? \rock\helpers\StringHelper::decode($input) : $input; }
/** * Decodes special HTML entities back to the corresponding characters. * * @param string $value * @return string */ public static function decode($value) { return StringHelper::decode($value); }
/** * Decodes special HTML entities back to the corresponding characters. * * This is the opposite of {@see \rock\template\Html::encode()}. * * @param string $content the content to be decoded * @return string the decoded content {@see \rock\template\Html::encode()} * @see http://www.php.net/manual/en/function.htmlspecialchars-decode.php */ public static function decode($content) { return StringHelper::decode($content); }