|
@@ 2225-2226 (lines=2) @@
|
| 2222 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2223 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2224 |
|
|
| 2225 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2226 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2227 |
|
} |
| 2228 |
|
|
| 2229 |
|
if (!empty($to_close)) |
|
@@ 2503-2504 (lines=2) @@
|
| 2500 |
|
$whitespace_regex .= '( |\s)*(<br>)?'; |
| 2501 |
|
if (!empty($tag['trim']) && $tag['trim'] != 'inside') |
| 2502 |
|
$whitespace_regex .= empty($tag['require_parents']) ? '( |\s)*' : '(<br>| |\s)*'; |
| 2503 |
|
if (!empty($whitespace_regex) && preg_match('~' . $whitespace_regex . '~', substr($message, $pos), $matches) != 0) |
| 2504 |
|
$message = substr($message, 0, $pos) . substr($message, $pos + strlen($matches[0])); |
| 2505 |
|
|
| 2506 |
|
array_pop($open_tags); |
| 2507 |
|
} |