public function display()
    {
        if (!$this->visible) {
            return;
        }

        parent::display();

        if ($this->content_type === 'text/plain') {
            echo SwatString::minimizeEntities($this->content);
        } else {
            echo $this->content;
        }
    }