]> BookStack Code Mirror - bookstack/blobdiff - app/Repos/EntityRepo.php
Updated Spanish translation
[bookstack] / app / Repos / EntityRepo.php
index e94d3436991cf425f3ba80ac4c0a8380a012d1ed..14f9d8d0eaf8c2d7a56fbed7280bdf3b79e4ec1e 100644 (file)
@@ -784,7 +784,9 @@ class EntityRepo
         $scriptSearchRegex = '/<script.*?>.*?<\/script>/ms';
         $matches = [];
         preg_match_all($scriptSearchRegex, $html, $matches);
-        if (count($matches) === 0) return $html;
+        if (count($matches) === 0) {
+            return $html;
+        }
 
         foreach ($matches[0] as $match) {
             $html = str_replace($match, htmlentities($match), $html);