I want to display text from content (only text) with the formating (paragraph, bold, italic.) on loop. When I am using this code:
<?php echo mb_substr( strip_tags( get_the_excerpt() ),0,255); ?>
or
<?php the_excerpt(); ?>
The text displayed without the text formating. No p, br even the hr is disappear.
When I am using this code:
<?php echo apply_filters('the_content',substr(get_the_content(),0,550)); ?>
The text displayed with the format, but the other content also display (image, video and else) I just want to display the text with the format.
Anybody know how to resolve the problem? Really appreciate for any help
Thank you