Skip to content

Commit

Permalink
Update Crawler.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Chepurnoy committed Dec 28, 2015
1 parent 7fde012 commit 5cb4b13
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@ class Crawler extends Object
*/
public $curlOptions = [];

/**
* @var array html purifier settings
*/
public $htmlPurifierSettings = [
'HTML.Allowed' => ''
];

/**
* @var string page url
*/
Expand Down Expand Up @@ -198,7 +205,7 @@ protected function getDescription($content, $metaTags)
if (ContentHelper::isJson($description)) {
$description = "";
}
$description = HtmlPurifier::process($description);
$description = HtmlPurifier::process($description, $this->htmlPurifierSettings);

return ContentHelper::trimText($description);
}
Expand Down

0 comments on commit 5cb4b13

Please sign in to comment.