mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1753 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6b1a61b34a
commit
6f6e159d5f
1 changed files with 9 additions and 2 deletions
|
|
@ -784,8 +784,8 @@
|
||||||
// <br> 코드 변환
|
// <br> 코드 변환
|
||||||
$content = preg_replace('/<br([^>\/]*)(\/>|>)/i','<br$1 />', $content);
|
$content = preg_replace('/<br([^>\/]*)(\/>|>)/i','<br$1 />', $content);
|
||||||
|
|
||||||
// <P> => <p> 코드 변환
|
// 몇가지 대문자 태그를 소문자로 변경
|
||||||
$content = preg_replace('/<(\/){0,1}P([^>]*)>/','<$1p$2>', $content);
|
$content = preg_replace_callback('!<(\/){0,1}([A-Z]+)([^>]*?)>!s',array($this,'_transTagToLowerCase'), $content);
|
||||||
|
|
||||||
// <img ...> 코드를 <img ... /> 코드로 변환
|
// <img ...> 코드를 <img ... /> 코드로 변환
|
||||||
$content = preg_replace('/<img(.*?)(\/){0,1}>/i','<img$1 />', $content);
|
$content = preg_replace('/<img(.*?)(\/){0,1}>/i','<img$1 />', $content);
|
||||||
|
|
@ -796,6 +796,13 @@
|
||||||
return $content;
|
return $content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief IE위지윅에디터에서 태그가 대문자로 사용되기에 이를 소문자로 치환
|
||||||
|
**/
|
||||||
|
function _transTagToLowerCase($matches) {
|
||||||
|
return sprintf('<%s%s%s>', $matches[1], strtolower($matches[2]), $matches[3]);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief <body>내의 <style태그를 header로 이동
|
* @brief <body>내의 <style태그를 header로 이동
|
||||||
**/
|
**/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue