| @@ 2164-2165 (lines=2) @@ | ||
| 2161 | # |
|
| 2162 | # Increase/decrease nested tag count. |
|
| 2163 | # |
|
| 2164 | if ($tag{1} == '/') $depth--; |
|
| 2165 | else if ($tag{strlen($tag)-2} != '/') $depth++; |
|
| 2166 | ||
| 2167 | if ($depth < 0) { |
|
| 2168 | # |
|
| @@ 2292-2293 (lines=2) @@ | ||
| 2289 | # the tag's name match base tag's. |
|
| 2290 | # |
|
| 2291 | if (preg_match('{^</?'.$base_tag_name_re.'\b}', $tag)) { |
|
| 2292 | if ($tag{1} == '/') $depth--; |
|
| 2293 | else if ($tag{strlen($tag)-2} != '/') $depth++; |
|
| 2294 | } |
|
| 2295 | ||
| 2296 | # |
|