WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Strip tags (3 posts)

  1. Peter G.
    Member
    Posted 1 year ago #

    Hey folks, how do I strip tags from the following title functions?

    <h5><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
              <?php the_title(); ?>
              </a></h5>
            <p>
              <?php the_excerpt_rss(); ?>
            </p></li>

    Some of my blog titles have <br> <em> etc. and I'd like to remove them here.

    Thanks!

  2. Peter G.
    Member
    Posted 1 year ago #

    Nevermind. I found what I'm looking for in the the_title_attribute() referenced here.

  3. Peter G.
    Member
    Posted 1 year ago #

    Solved.

Topic Closed

This topic has been closed to new replies.

About this Topic