- Make the auto-linebreak filter also ignore the contents of <script>.

This makes it easier to use JavaScript (e.g. Google Adsense) inside blocks.
4.7.x
Steven Wittens 2005-04-20 03:01:07 +00:00
parent 755da4bc0e
commit b42e2b6760
2 changed files with 2 additions and 2 deletions

View File

@ -956,7 +956,7 @@ function _filter_autop($text) {
if ($i % 2) {
// Opening or closing tag?
$open = ($chunk{1} != '/');
list(, $tag) = split('[< ]', $chunk);
list($tag) = split('[ >]', substr($chunk, 2 - $open), 2);
if (!$ignore) {
if ($open) {
$ignore = true;

View File

@ -956,7 +956,7 @@ function _filter_autop($text) {
if ($i % 2) {
// Opening or closing tag?
$open = ($chunk{1} != '/');
list(, $tag) = split('[< ]', $chunk);
list($tag) = split('[ >]', substr($chunk, 2 - $open), 2);
if (!$ignore) {
if ($open) {
$ignore = true;