diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php
index b80c7673e3..78224dd5da 100644
--- a/phpBB/install/convertors/functions_phpbb20.php
+++ b/phpBB/install/convertors/functions_phpbb20.php
@@ -1239,9 +1239,9 @@ function phpbb_prepare_message($message)
// Already the new user id ;)
$user_id = $convert->row['poster_id'];
+ $message = str_replace('
', "\n", $message);
$message = str_replace('<', '<', $message);
$message = str_replace('>', '>', $message);
- $message = str_replace('
', "\n", $message);
// make the post UTF-8
$message = phpbb_set_encoding($message);