post_content),0,40) ; ?>
post_content),0,40) . ‘…’; ?>
post_content, ‘UTF-8’)>40){
$content= mb_substr(strip_tags($post->post_content), 0, 40, ‘UTF-8′);
echo $content.’……’;
}else{
echo strip_tags($post->post_content);
}
?>>
if(mb_strlen($post->post_content, ‘UTF-8’)>200){
$content= mb_substr(strip_tags($post->post_content, ‘
‘), 0, 200, ‘UTF-8′);
echo $content.’……’;
}else{
echo strip_tags($post->post_content, ‘
‘);
}
//brとspanを残す
if(mb_strlen($post->post_content, ‘UTF-8’)>200){
$content= mb_substr(strip_tags($post->post_content, ‘
‘), 0, 200, ‘UTF-8′);
echo $content.’……’;
}else{
echo strip_tags($post->post_content, ‘
‘);
}
?>