• Hi,

    Maybe somebody can help me with this.
    I have two weblogs in one I apparently don’t have to add html entities and in the other it does.

    In WP 1.5.1.3 I have to add HTML entities.

    How does WordPress 2.8.4 makes it work without HTML entities?
    If I look into the database there are no HTML entities.

    I like to add the latest WP post published on my regular website.
    Apparently there it needs HTML entities.
    Any idea?

    Any help is greatly appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yes – you’re using an incredibly old version of WP!

    Thread Starter flautisto

    (@flautisto)

    Hi esmi,

    I understand. But I like to use the text of the latest post to use on my regular (No WP) website. How do I accomplish that without showing missing HTML entities?

    Thanks for your help.

    You could try using something like:

    <?php $content = get_the_content();
    $content = apply_filters('the_content', $content);
    $content = str_replace(']]>', ']]>', $content);
    echo htmlentities($content);
    ?>
    Thread Starter flautisto

    (@flautisto)

    Hi Esmi,

    Thanks for pointing me the direction.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTML entities in WP not needed?’ is closed to new replies.