From df6a2d8494a749c9b695f3b8820af68c7f823f40 Mon Sep 17 00:00:00 2001
From: Th3Shadowbroker <webmaster@m4taiori.de>
Date: Mon, 22 Jul 2019 08:51:54 +0200
Subject: [PATCH] The removeHtml parameter of SpigetResource->getDescription()
 is now used correctly

---
 Classes/SpigetResource.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/Classes/SpigetResource.php b/Classes/SpigetResource.php
index d4640f5..4cad90b 100644
--- a/Classes/SpigetResource.php
+++ b/Classes/SpigetResource.php
@@ -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;
     }
 
     /**