示例#1
0
 /**
  * @inheritdoc
  */
 public function sanitize($input)
 {
     return is_string($input) ? \rock\helpers\StringHelper::decode($input) : $input;
 }
示例#2
0
 /**
  * Decodes special HTML entities back to the corresponding characters.
  *
  * @param string $value
  * @return string
  */
 public static function decode($value)
 {
     return StringHelper::decode($value);
 }
示例#3
0
 /**
  * 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);
 }