mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
#19780880 cond attribute in tag, not parsed
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8415 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ab0421cd81
commit
0678de9512
1 changed files with 8 additions and 1 deletions
|
|
@ -357,9 +357,16 @@
|
|||
|
||||
$pre_pos = strrpos($pre, '<');
|
||||
|
||||
$isClosedTagUse = true;
|
||||
preg_match('/<(\/|[a-z])/i',$next,$m);
|
||||
// if not use closed tag, find simple closed tag
|
||||
if(!$m[0]) {
|
||||
$isClosedTagUse = false;
|
||||
preg_match('/\/>/',$next,$m);
|
||||
}
|
||||
if(!$m[0]) return $buff;
|
||||
$next_pos = strpos($next, $m[0]);
|
||||
if($isClosedTagUse) $next_pos = strpos($next, $m[0]);
|
||||
else $next_pos = strpos($next, $m[0])+2;
|
||||
|
||||
$tag = substr($pre, $pre_pos). substr($next, 0, $next_pos);
|
||||
$pre = substr($pre, 0, $pre_pos);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue