summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2005-06-01 03:21:44 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2005-06-01 03:21:44 +0000
commit0b008c55ffd0068a27cc2dd136a6bd2a2f6109c9 (patch)
tree48850a9a9f6ae0bb4a3053dbc1fd93aa2dff6bde
parentcec393d9df6dec720fa5f9a6d53952d650f7185c (diff)
downloadbrdo-0b008c55ffd0068a27cc2dd136a6bd2a2f6109c9.tar.gz
brdo-0b008c55ffd0068a27cc2dd136a6bd2a2f6109c9.tar.bz2
- Use &amp; instead of numerical entity in autop.
-rw-r--r--modules/filter.module2
-rw-r--r--modules/filter/filter.module2
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};)/', '&#038;$1', $chunk);
+ $chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&amp;$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};)/', '&#038;$1', $chunk);
+ $chunk = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&amp;$1', $chunk);
}
$output .= $chunk;
}