Changeset 980
- Timestamp:
- 03/21/2004 07:07:55 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions-formatting.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r972 r980 45 45 } 46 46 return $output; 47 } 48 49 function clean_pre($text) { 50 $text = stripslashes($text); 51 $text = str_replace('<br />', '', $text); 52 return $text; 47 53 } 48 54 … … 65 71 $pee = preg_replace('!(</?(?:table|thead|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|select|form|blockquote|p|h[1-6])[^>]*>)\s*<br />!', "$1", $pee); 66 72 $pee = preg_replace('!<br />(\s*</?(?:p|li|div|dl|dd|dt|th|pre|td|ul|ol)>)!', '$1', $pee); 73 $pee = preg_replace('!(<pre.*?>)(.*?)</pre>!ise', " '$1' . clean_pre('$2') . '</pre>' ", $pee); 67 74 $pee = preg_replace('/&([^#])(?![a-z]{1,8};)/', '&$1', $pee); 68 75
Note: See TracChangeset
for help on using the changeset viewer.