Support » Fixing WordPress » Use wp_kses_decode_entities on do_feed_atom?

  • 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');
  • The topic ‘Use wp_kses_decode_entities on do_feed_atom?’ is closed to new replies.