WordPress.org

Ready to get started?Download WordPress

Forums

Use wp_kses_decode_entities on do_feed_atom? (1 post)

  1. 3stripe
    Member
    Posted 1 year ago #

    Hello,

    I need to convert the htmlentities in my atom feed to their normal characters...

    The add_filter lines below work when not commented out, but then they affect the main RSS feed too , which I don't want... and the add_cation version doesn't seem to do anything...

    Any pointers?

    Thans :)

    function decode_feed_entities($content) {
           return wp_kses_decode_entities($content);
    }
    add_action('do_feed_atom', 'decode_feed_entities', 10, 1);
    // add_filter('the_content_feed', 'decode_feed_entities');
    // add_filter('the_excerpt_rss', 'decode_feed_entities');

Topic Closed

This topic has been closed to new replies.

About this Topic