|
@@ 2141-2142 (lines=2) @@
|
| 2138 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2139 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2140 |
|
|
| 2141 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2142 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2143 |
|
} |
| 2144 |
|
|
| 2145 |
|
if (!empty($to_close)) |
|
@@ 2419-2420 (lines=2) @@
|
| 2416 |
|
$whitespace_regex .= '( |\s)*<br>'; |
| 2417 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2418 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2419 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2420 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2421 |
|
|
| 2422 |
|
array_pop($open_tags); |
| 2423 |
|
} |