Prado\Web\UI\WebControls\TSafeHtml::parseSafeHtml PHP Method

parseSafeHtml() protected method

Use HTMLPurifier to remove malicous content from HTML.
protected parseSafeHtml ( $text ) : string
return string safer HTML content
    protected function parseSafeHtml($text)
    {
        $purifier = new \HTMLPurifier($this->getConfig());
        return $purifier->purify($text);
    }