src/View/AbstractView.php
public function htmlDecode($data)
    {
        switch (gettype($data)) {
            case 'array':
                foreach ($data as $key => $value) {
                    $data[$key] = $this->htmlDecode($value);
                }

                break;
            case 'object':
                $data = clone $data;

                foreach ($data as $key => $value) {
                    $data->$key = $this->htmlDecode($value);
                }

                break;
            case 'string':
            default:
                $data = html_entity_decode($data, ENT_QUOTES, 'UTF-8');

                break;
        }

        return $data;
    }
public function htmlDecode($data)
    {
        switch (gettype($data)) {
            case 'array':
                foreach ($data as $key => $value) {
                    $data[$key] = $this->htmlDecode($value);
                }

                break;
            case 'object':
                $data = clone $data;

                foreach ($data as $key => $value) {
                    $data->$key = $this->htmlDecode($value);
                }

                break;
            case 'string':
            default:
                $data = html_entity_decode($data, ENT_QUOTES, 'UTF-8');

                break;
        }

        return $data;
    }
public function htmlDecode ( $ data ) { switch ( gettype ( $ data ) ) { case 'array' : foreach ( $ data as $ key => $ value ) { $ data [ $ key ] = $ this -> htmlDecode ( $ value ) ; } break ; case 'object' : $ data = clone $ data ; foreach ( $ data as $ key => $ value ) { $ data -> $ key = $ this -> htmlDecode ( $ value ) ; } break ; case 'string' : default : $ data = html_entity_decode ( $ data , ENT_QUOTES , 'UTF-8' ) ; break ; } return $ data ; }
Recursively decode an HTML encoded value

@param mixed $data
@return mixed
Recursively decode an HTML encoded value