Forums

the_content() and <p> (4 posts)

  1. gilotka
    Member
    Posted 1 year ago #

    Hello,
    I need delete HTML tag <p> and </p> from the_content() function.

    HOW TO?

    (I need insert URL from "the_content()" to <iframe src="<?php the_content() ?>">, but I must delete tag <p> and </p>, WHERE/HOW?

    Or any another way?

  2. gilotka
    Member
    Posted 1 year ago #

    Nobody knows?

  3. alchymyth
    The Sweeper
    Posted 1 year ago #

    try to use:
    <iframe src="<?php echo strip_tags(get_the_content()); ?>">

  4. gilotka
    Member
    Posted 1 year ago #

    THANKS!!! It's OK! :))

Topic Closed

This topic has been closed to new replies.

About this Topic