diff --git a/classes/context/Context.class.php b/classes/context/Context.class.php index 5b8db4e9f..d3bf69d02 100644 --- a/classes/context/Context.class.php +++ b/classes/context/Context.class.php @@ -784,8 +784,8 @@ //
코드 변환 $content = preg_replace('/\/]*)(\/>|>)/i','', $content); - //

=>

코드 변환 - $content = preg_replace('/<(\/){0,1}P([^>]*)>/','<$1p$2>', $content); + // 몇가지 대문자 태그를 소문자로 변경 + $content = preg_replace_callback('!<(\/){0,1}([A-Z]+)([^>]*?)>!s',array($this,'_transTagToLowerCase'), $content); // 코드를 코드로 변환 $content = preg_replace('//i','', $content); @@ -796,6 +796,13 @@ return $content; } + /** + * @brief IE위지윅에디터에서 태그가 대문자로 사용되기에 이를 소문자로 치환 + **/ + function _transTagToLowerCase($matches) { + return sprintf('<%s%s%s>', $matches[1], strtolower($matches[2]), $matches[3]); + } + /** * @brief 내의