mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@572 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0f62d5b189
commit
ba7c2e3b02
2 changed files with 7 additions and 4 deletions
|
|
@ -678,10 +678,10 @@
|
|||
$content = preg_replace_callback('!<(div|img)([^\>]*)editor_component=([^\>]*?)>!is', array($this,'_transEditorComponent'), $content);
|
||||
|
||||
// <br> 코드 변환
|
||||
$content = str_replace(array("<BR>","<br>","<Br>"),"<br />", $content);
|
||||
$content = preg_replace('/<br([^>]*)>/i','<br$1/>', $content);
|
||||
|
||||
// <img ...> 코드를 <img ... /> 코드로 변환
|
||||
$content = preg_replace('!<img(.*?)(\/){0,1}>!is','<img\\1 />', $content);
|
||||
$content = preg_replace('/<img([^>^\/]*)(\/>|>)/i','<img$1 />', $content);
|
||||
|
||||
return $content;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue