| @@ 2060-2068 (lines=9) @@ | ||
| 2057 | } | |
| 2058 | ||
| 2059 | // The idea is, if we are LOOKING for a block level tag, we can close them on the way. | |
| 2060 | if (strlen($look_for) > 0 && isset($bbc_codes[$look_for[0]])) | |
| 2061 | 					{ | |
| 2062 | foreach ($bbc_codes[$look_for[0]] as $temp) | |
| 2063 | if ($temp['tag'] == $look_for) | |
| 2064 | 							{ | |
| 2065 | $block_level = !empty($temp['block_level']); | |
| 2066 | break; | |
| 2067 | } | |
| 2068 | } | |
| 2069 | ||
| 2070 | if ($block_level !== true) | |
| 2071 | 					{ | |
| @@ 2090-2098 (lines=9) @@ | ||
| 2087 | } | |
| 2088 | elseif (!empty($to_close) && $tag['tag'] != $look_for) | |
| 2089 | 			{ | |
| 2090 | if ($block_level === null && isset($look_for[0], $bbc_codes[$look_for[0]])) | |
| 2091 | 				{ | |
| 2092 | foreach ($bbc_codes[$look_for[0]] as $temp) | |
| 2093 | if ($temp['tag'] == $look_for) | |
| 2094 | 						{ | |
| 2095 | $block_level = !empty($temp['block_level']); | |
| 2096 | break; | |
| 2097 | } | |
| 2098 | } | |
| 2099 | ||
| 2100 | // We're not looking for a block level tag (or maybe even a tag that exists...) | |
| 2101 | if (!$block_level) | |