mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-12 23:12:13 +09:00
특수문자 표기가 중간에 잘리지 않게 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6355 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9b13392e59
commit
04a11afb14
1 changed files with 7 additions and 1 deletions
|
|
@ -272,12 +272,18 @@
|
|||
if($tag == '<br>') continue;
|
||||
$tag_open_pos = strpos($content, str_replace('>','',$tag));
|
||||
$tag_close_pos = strpos($content, str_replace('<','</',$tag));
|
||||
|
||||
if($tag_open_pos!==false && $tag_close_pos || $tag_close_pos < $tag_open_pos) {
|
||||
$contents[count($contents)-1] .= substr($content, 0, $tag_close_pos + strlen($tag) + 1);
|
||||
$content = substr($content, $tag_close_pos + strlen($tag) + 1);
|
||||
}
|
||||
}
|
||||
|
||||
$tag_open_pos = strpos($content, '&');
|
||||
$tag_close_pos = strpos($content, ';');
|
||||
if($tag_open_pos!==false && $tag_close_pos || $tag_close_pos < $tag_open_pos) {
|
||||
$contents[count($contents)-1] .= substr($content, 0, $tag_close_pos + 1);
|
||||
$content = substr($content, $tag_close_pos + 1);
|
||||
}
|
||||
}
|
||||
|
||||
$this->totalPage = count($contents);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue