Example #1
0
 /**
  * 对字符串进行反向安全处理
  *
  * @param $str
  */
 public static function htmlspecialchars_decode($str)
 {
     if (null === $str) {
         return null;
     }
     if (is_array($str) || is_object($str)) {
         foreach ($str as $k => $v) {
             $str[$k] = HttpIO::htmlspecialchars_decode($v);
         }
     } else {
         $str = htmlspecialchars_decode($str);
     }
     return $str;
 }