diff --git a/wheeparam/application/helpers/common_helper.php b/wheeparam/application/helpers/common_helper.php index f1b7889..39a0e68 100644 --- a/wheeparam/application/helpers/common_helper.php +++ b/wheeparam/application/helpers/common_helper.php @@ -1267,5 +1267,5 @@ function db_file_delete($table, $pk_column, $pk, $filepath_column) */ function get_post_summary($post_content="", $length=300) { - return cut_str( trim( strip_tags($post_content) ) ,$length); + return cut_str( trim( strip_tags( str_replace(" ", " ", $post_content)) ) ,$length); }