在下面的代码片段中,我试图使the_excerpt被写出而没有标签。但是,源格式显示the_excerpt始终包装在P标签中。如何删除没有标签的摘录?
foreach($myrecentposts as $idxrecent=>$post)
{ ?>
<li class="page_item">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php echo strip_tags(substr( the_excerpt(), 0, 75 ))."..." ?>
</li><?php }
echo "</ul>
</div>";}