Browse Source

휘파람보드 1.1.7

- 게시물 요약 가져올때   처리
master
장선근 6 years ago
parent
commit
6033cef2ee
  1. 2
      wheeparam/application/helpers/common_helper.php

2
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) 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);
} }
Loading…
Cancel
Save