소스 검색

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)
     protected function compileTransformations($value)
     {
     {
+        if ('<?xml ' === \substr($value, 0, 6)) {
+            $value = \str_replace(' \\ENT_HTML5 | \\ENT_QUOTES | \\ENT_SUBSTITUTE,', ' \\ENT_XML1,', $value);
+        }
+
         $perfix = <<<'EOD'
         $perfix = <<<'EOD'
 <?php
 <?php