Optimizer를 개량하여 IE6를 제외한 브라우저라면 gzip 전송이 되도록 하고 불필요한 정규표현식을 정리

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3534 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-01-16 03:22:47 +00:00
parent 4937f8c223
commit 04827948ea
4 changed files with 31 additions and 23 deletions

View file

@ -864,17 +864,8 @@
// body 내의 <style ..></style>를 header로 이동
$content = preg_replace_callback('!<style(.*?)<\/style>!is', array($this,'moveStyleToHeader'), $content);
// <br> 코드 변환
$content = preg_replace('/<br([^>\/]*)(\/>|>)/i','<br$1 />', $content);
// 몇가지 대문자 태그를 소문자로 변경
//$content = preg_replace_callback('!<(\/){0,1}([A-Z]+)([^>]*?)>!s',array($this,'transTagToLowerCase'), $content);
// <img ...> 코드를 <img ... /> 코드로 변환
$content = preg_replace('/<img(.*?)(\/){0,1}>/i','<img$1 />', $content);
// blogapi tool에서 삽입된 코드 삭제
//$content = str_replace('atomicselection="true"','',$content);
// <img|br> 코드 변환
$content = preg_replace('/<(img|br)([^>\/]*)(\/>|>)/i','<$1$2 />', $content);
return $content;
}