<?php
/**
 * @title          Escape Exception Trait
 * @desc           Escape the exception message.
 *
 * @author         Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright      (c) 2012-2018, Pierre-Henry Soria. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7/ Framework / Error / CException
 * @version        1.1
 */

namespace PH7\Framework\Error\CException;

defined('PH7') or exit('Restricted access');

trait Escape
{
    protected $sAllowTags = '<br><i><em><b><strong><u>';

    /**
     * Escape the exception message.
     *
     * @param string $sMsg
     */
    protected function strip($sMsg)
    {
        $this->message = strip_tags($sMsg, $this->sAllowTags);
    }
}

<?php
/**
 * @title          Escape Exception Trait
 * @desc           Escape the exception message.
 *
 * @author         Pierre-Henry Soria <ph7software@gmail.com>
 * @copyright      (c) 2012-2018, Pierre-Henry Soria. All Rights Reserved.
 * @license        GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory.
 * @package        PH7/ Framework / Error / CException
 * @version        1.1
 */

namespace PH7\Framework\Error\CException;

defined('PH7') or exit('Restricted access');

trait Escape
{
    /** @var string */
    private $sAllowTags = '<br><i><em><b><strong><u>';

    /**
     * Escape the exception message.
     *
     * @param string $sMsg
     */
    protected function strip($sMsg)
    {
        $this->message = strip_tags($sMsg, $this->sAllowTags);
    }
}

Change Escape:$sAllowTags to private + add missing phpdoc comment
Change Escape:$sAllowTags to private + add missing phpdoc comment
