src/Traits/Purifiable.php
public function setPurifiedContent($rawHtml)
    {
        $this->content = Purifier::clean($rawHtml, ['HTML.Allowed' => '']);
        $this->html = Purifier::clean($rawHtml, Setting::grab('purifier_config'));

        return $this;
    }
public function setPurifiedContent($rawHtml)
    {
        $this->content = Purifier::clean($rawHtml, ['HTML.Allowed' => '']);
        $this->html = Purifier::clean($rawHtml, Setting::grab('purifier_config'));

        return $this;
    }
public function setPurifiedContent ( $ rawHtml ) { $ this -> content = Purifier :: clean ( $ rawHtml , [ 'HTML.Allowed' => '' ] ) ; $ this -> html = Purifier :: clean ( $ rawHtml , Setting :: grab ( 'purifier_config' ) ) ; return $ this ; }
Updates the content and html attribute of the given model.

@param string $rawHtml

@return \Illuminate\Database\Eloquent\Model $this
Updates the content and html attribute of the given model .