From 821f619048e024fca00404735457d1faed792a23 Mon Sep 17 00:00:00 2001 From: Steven Wittens Date: Sat, 7 May 2005 00:06:37 +0000 Subject: - Line-break filter now also ignores tags. // We don't apply any processing to the contents of these tags to avoid messing // up code. We look for matched pairs and allow basic nesting. For example: // "processed
 ignored  ignored 
processed" - $chunks = preg_split('@(]*>)@', $text, -1, PREG_SPLIT_DELIM_CAPTURE); + $chunks = preg_split('@(]*>)@', $text, -1, PREG_SPLIT_DELIM_CAPTURE); // Note: PHP ensures the array consists of alternating delimiters and literals // and begins and ends with a literal (inserting NULL as required). $ignore = false; diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 492975721..79a3c2472 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -942,11 +942,11 @@ function _filter_html($text, $format) { * Based on: http://photomatt.net/scripts/autop */ function _filter_autop($text) { - // Split at
,  tags.
+  // Split at 
, ,  tags.
   // We don't apply any processing to the contents of these tags to avoid messing
   // up code. We look for matched pairs and allow basic nesting. For example:
   // "processed 
 ignored  ignored 
processed" - $chunks = preg_split('@(]*>)@', $text, -1, PREG_SPLIT_DELIM_CAPTURE); + $chunks = preg_split('@(]*>)@', $text, -1, PREG_SPLIT_DELIM_CAPTURE); // Note: PHP ensures the array consists of alternating delimiters and literals // and begins and ends with a literal (inserting NULL as required). $ignore = false; -- cgit v1.2.3