the_excerpt()
-
According to the codex documentation the_excerpt() API will automatically strip HTML tags under certain conditions. However, I cannot seem to get it to work. Here is my code:
<?php while (have_posts()) : the_post(); ?> <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php echo strip_tags( the_excerpt() ); ?>" alt="<?php echo strip_tags( the_excerpt() ); ?>"><?php the_title(); ?></a></h1> <?php endwhile; ?>
If you go to this link and hover your mouse over the headings, you will see what I am talking about.
How do I get the_excerpt to strip the HTML tags?
Thanks! ??
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘the_excerpt()’ is closed to new replies.