示例#1
0
 public function testHtmlDecode()
 {
     $array = ['abc' => '123', '&lt;' => '&gt;', 'cde' => false, 3 => 'blank', ['<>' => 'a&lt;&gt;b', '23' => true]];
     $this->assertEquals(['abc' => '123', '&lt;' => '>', 'cde' => false, 3 => 'blank', ['<>' => 'a<>b', '23' => true]], ArrayHelper::htmlDecode($array));
     $this->assertEquals(['abc' => '123', '<' => '>', 'cde' => false, 3 => 'blank', ['<>' => 'a<>b', '23' => true]], ArrayHelper::htmlDecode($array, false));
 }