diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-06-01 03:21:44 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-06-01 03:21:44 +0000 |
commit | 0b008c55ffd0068a27cc2dd136a6bd2a2f6109c9 (patch) | |
tree | 48850a9a9f6ae0bb4a3053dbc1fd93aa2dff6bde | |
parent | cec393d9df6dec720fa5f9a6d53952d650f7185c (diff) | |
download | brdo-0b008c55ffd0068a27cc2dd136a6bd2a2f6109c9.tar.gz brdo-0b008c55ffd0068a27cc2dd136a6bd2a2f6109c9.tar.bz2 |
- Use & instead of numerical entity in autop.
-rw-r--r-- | modules/filter.module | 2 | ||||
-rw-r--r-- | modules/filter/filter.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/filter.module b/modules/filter.module index 94784caee..3d19aa17d 100644 --- a/modules/filter.module +++ b/modules/filter.module @@ -985,7 +985,7 @@ function _filter_autop($text) { $chunk = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $chunk); // make line breaks $chunk = preg_replace('!(</?(?:table|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|p|h[1-6])[^>]*>)\s*<br />!', "$1", $chunk); $chunk = preg_replace('!<br />(\s*</?(?:p|li|div|th|pre|td|ul|ol)>)!', '$1', $chunk); - $chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $chunk); + $chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $chunk); } $output .= $chunk; } diff --git a/modules/filter/filter.module b/modules/filter/filter.module index 94784caee..3d19aa17d 100644 --- a/modules/filter/filter.module +++ b/modules/filter/filter.module @@ -985,7 +985,7 @@ function _filter_autop($text) { $chunk = preg_replace('|(?<!<br />)\s*\n|', "<br />\n", $chunk); // make line breaks $chunk = preg_replace('!(</?(?:table|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|p|h[1-6])[^>]*>)\s*<br />!', "$1", $chunk); $chunk = preg_replace('!<br />(\s*</?(?:p|li|div|th|pre|td|ul|ol)>)!', '$1', $chunk); - $chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $chunk); + $chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $chunk); } $output .= $chunk; } |