Browse Source

Update View for feeds

Replace flags of \htmlspecialchars() function for xml files
Visman 4 years ago
parent
commit
cfcb867afd
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Core/View.php

+ 4 - 0
app/Core/View.php

@@ -53,6 +53,10 @@ class View extends Dirk
      */
     protected function compileTransformations($value)
     {
+        if ('<?xml ' === \substr($value, 0, 6)) {
+            $value = \str_replace(' \\ENT_HTML5 | \\ENT_QUOTES | \\ENT_SUBSTITUTE,', ' \\ENT_XML1,', $value);
+        }
+
         $perfix = <<<'EOD'
 <?php