Changeset 9302 for trunk/wp-includes/formatting.php
- Timestamp:
- 10/23/2008 08:03:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/formatting.php
r9255 r9302 2145 2145 } 2146 2146 2147 // normalize EOL characters and strip duplicate whitespace 2148 function normalize_whitespace( $str ) { 2149 $str = trim($str); 2150 $str = str_replace("\r", "\n", $str); 2151 $str = preg_replace( array( '/\n+/', '/[ \t]+/' ), array( "\n", ' ' ), $str ); 2152 return $str; 2153 } 2154 2147 2155 ?>
Note: See TracChangeset
for help on using the changeset viewer.