Changeset 10339 for trunk/wp-admin/import/livejournal.php
- Timestamp:
- 01/09/2009 07:29:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/import/livejournal.php
r10334 r10339 72 72 73 73 // Clean up content 74 $post_content = preg_replace ('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $post_content);74 $post_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $post_content); 75 75 $post_content = str_replace('<br>', '<br />', $post_content); 76 76 $post_content = str_replace('<hr>', '<hr />', $post_content); … … 108 108 109 109 // Clean up content 110 $comment_content = preg_replace ('|<(/?[A-Z]+)|e', "'<' . strtolower('$1')", $comment_content);110 $comment_content = preg_replace_callback('|<(/?[A-Z]+)|', create_function('$match', 'return "<" . strtolower($match[1]);'), $comment_content); 111 111 $comment_content = str_replace('<br>', '<br />', $comment_content); 112 112 $comment_content = str_replace('<hr>', '<hr />', $comment_content);
Note: See TracChangeset
for help on using the changeset viewer.