• Really just posting this here to see if this option will be available in future releases.

    Im using googlenews RSS feeds with the WP RSS Multi Importer but when
    I set “Check to get rid of all html and images in the excerpt” to NO
    images dissapear and tables from the news feed dont make a mess of the theme layout, but I wanted to keep the images.

    So in wp-content/plugins/wp-rss-multi-importer/inc

    excerpt_functions.php

    I changed on Line 242:
    $content=strip_tags(html_entity_decode($content));

    to keep certain tags:
    $content=strip_tags(html_entity_decode($content),'<font><a><img><p><br>');

    And

    On the function showexcerpt return

    near Line 275 where the line

    says:
    return $content;

    I replaced it with:
    return preg_replace('/\<[\/]?(table|tbody|tr|td)([^\>]*)\>/i', '', $content);

    to strip out the table tags but keep the images as the tables where making my theme layout a mess.

    Hope this helps out someone if I had more time I would have added metaboxes for a few tag options in the plugins admin for others to use.

    Great plugin thanks, and works well with my own custom_post_types.

    https://www.ads-software.com/plugins/wp-rss-multi-importer/

Viewing 1 replies (of 1 total)
  • Plugin Author Allen

    (@amweiss98)

    thanks Steven..yes, this is the problem with an an RSS reader…that is every single RSS feed has nuances and its quite impossible to configure at plugin to deal with every issue….for example, your fix is great for google news, but based on what others have told me it would mess up other RSS feeds. Perhaps I’ll make a checkbox where people can decide one way or another….thanks again.

Viewing 1 replies (of 1 total)
  • The topic ‘Strip Certain Tags From Feeds’ is closed to new replies.