瀏覽代碼

Update View for feeds

Replace flags of \htmlspecialchars() function for xml files
Visman 5 年之前
父節點
當前提交
cfcb867afd
共有 1 個文件被更改,包括 4 次插入0 次删除
  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