소스 검색

:fire: fix

visuddhinanda 3 년 전
부모
커밋
a2de174de7
1개의 변경된 파일0개의 추가작업 그리고 9개의 파일을 삭제
  1. 0 9
      app/Http/Api/MdRender.php

+ 0 - 9
app/Http/Api/MdRender.php

@@ -345,14 +345,5 @@ class MdRender{
         return MdRender::render2($markdown,$channelId,$queryId,$mode,$channelType,$contentType);
     }
 
-    public static function fix($html){
-        $doc = new \DOMDocument();
-        $doc->substituteEntities = false;
-        $content = mb_convert_encoding($html, 'html-entities', 'utf-8');
-        $doc->loadHTML($content);
-        $html = $doc->saveHTML();
-        return $html;
-    }
-
 
 }