Explorar el Código

feat: template decodeHtmlEntities filter

igb hace 4 meses
padre
commit
0901807d7d
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      app/Services/LiquidFilters/Filters.php

+ 4 - 0
app/Services/LiquidFilters/Filters.php

@@ -54,4 +54,8 @@ class Filters
         return '<img src="' . htmlspecialchars($imageUrl, ENT_QUOTES) . '" alt="' . htmlspecialchars($alt, ENT_QUOTES) . '"' . $attrString . '>';
     }
 
+    public static function decodeHtmlEntities($input) {
+        return html_entity_decode($input, ENT_QUOTES, 'UTF-8');
+    }
+
 }