<?php

namespace idoit\Module\Cmdb\Model\DataValue;

use idoit\Module\Cmdb\Model\DataValue\Traits\StringValue;

/**
 * i-doit
 *
 * Ci Models
 *
 * @package     i-doit
 * @subpackage  Cmdb
 * @copyright   synetics GmbH
 * @license     http://www.i-doit.com/license
 */
class Text extends BaseValue implements DataValueInterface
{
    use StringValue;

    public function __construct($value)
    {
        // First decode vocals like ü, then strip all html from editors
        parent::__construct(htmlspecialchars(html_entity_decode($value)));
    }
}
