| @@ 2074-2082 (lines=9) @@ | ||
| 2071 | } |
|
| 2072 | ||
| 2073 | // The idea is, if we are LOOKING for a block level tag, we can close them on the way. |
|
| 2074 | if (strlen($look_for) > 0 && isset($bbc_codes[$look_for[0]])) |
|
| 2075 | { |
|
| 2076 | foreach ($bbc_codes[$look_for[0]] as $temp) |
|
| 2077 | if ($temp['tag'] == $look_for) |
|
| 2078 | { |
|
| 2079 | $block_level = !empty($temp['block_level']); |
|
| 2080 | break; |
|
| 2081 | } |
|
| 2082 | } |
|
| 2083 | ||
| 2084 | if ($block_level !== true) |
|
| 2085 | { |
|
| @@ 2104-2112 (lines=9) @@ | ||
| 2101 | } |
|
| 2102 | elseif (!empty($to_close) && $tag['tag'] != $look_for) |
|
| 2103 | { |
|
| 2104 | if ($block_level === null && isset($look_for[0], $bbc_codes[$look_for[0]])) |
|
| 2105 | { |
|
| 2106 | foreach ($bbc_codes[$look_for[0]] as $temp) |
|
| 2107 | if ($temp['tag'] == $look_for) |
|
| 2108 | { |
|
| 2109 | $block_level = !empty($temp['block_level']); |
|
| 2110 | break; |
|
| 2111 | } |
|
| 2112 | } |
|
| 2113 | ||
| 2114 | // We're not looking for a block level tag (or maybe even a tag that exists...) |
|
| 2115 | if (!$block_level) |
|