fix #2064 link 태그 사용 시 self-closing 차이에 따라 뒤에 오는 태그를 head 영역으로 잘못 끌어 올리는 문제 고침

This commit is contained in:
bnu 2017-04-06 16:59:40 +09:00 committed by Kijin Sung
parent 1591f8b728
commit bff80770f1

View file

@ -168,7 +168,7 @@ class HTMLDisplayHandler
$output = preg_replace_callback('!<style(.*?)>(.*?)<\/style>!is', array($this, '_moveStyleToHeader'), $output); $output = preg_replace_callback('!<style(.*?)>(.*?)<\/style>!is', array($this, '_moveStyleToHeader'), $output);
// move <link ..></link> in body to the header // move <link ..></link> in body to the header
$output = preg_replace_callback('!<link(.*?)/>!is', array($this, '_moveLinkToHeader'), $output); $output = preg_replace_callback('!<link(.*?)/?>!is', array($this, '_moveLinkToHeader'), $output);
// move <meta ../> in body to the header // move <meta ../> in body to the header
$output = preg_replace_callback('!<meta(.*?)(?:\/|)>!is', array($this, '_moveMetaToHeader'), $output); $output = preg_replace_callback('!<meta(.*?)(?:\/|)>!is', array($this, '_moveMetaToHeader'), $output);