Skip to content

Commit

Permalink
Merge pull request #6 from Th3Shadowbroker/dev/th3shadowbroker
Browse files Browse the repository at this point in the history
The removeHtml parameter of SpigetResource->getDescription() is now u…
  • Loading branch information
Th3Shadowbroker authored Jul 22, 2019
2 parents a6b92c4 + df6a2d8 commit 62c2f97
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Classes/SpigetResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ public function getFile()
* @param bool $removeHtml Remove the html parts of the description.
* @return string
*/
public function getDescription($removeHtml = false )
public function getDescription($removeHtml = false)
{
return strip_tags( base64_decode($this->resource['description']) );
$decoded = base64_decode($this->resource['description']);
return $removeHtml ? strip_tags($decoded) : $decoded;
}

/**
Expand Down

0 comments on commit 62c2f97

Please sign in to comment.