In the code snippet below, I trying to get the_excerpt to be written out without tags. However, the source formatting shows that the_excerpt is always wrapped in P tags. How can I pull the excerpt without tags?
foreach($myrecentposts as $idxrecent=>$post)
{ ?>
<li class="page_item">
<a href="https://wordpress.stackexchange.com/questions/6916/<?php the_permalink(); ?>"><?php the_title(); ?></a>
<?php echo strip_tags(substr( the_excerpt(), 0, 75 ))."..." ?>
</li><?php }
echo "</ul>
</div>";}