• Resolved belindak

    (@belindak)


    I’m testing out your feed aggregator on our test site. It seems to work as I need it to Except the titles contain the bold html tags. Why is this happening?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Can you try adding this filter to your functionality plugin and let us know if it helps?

    add_filter( 'the_title', 'my_updated_article_title', 10 );
    function my_updated_article_title($title) {
    	return html_entity_decode($title);
    }
    Thread Starter belindak

    (@belindak)

    Where do I add this?

    @hypersonic
    Tested this filter and it’s not working on RSS feed titles (although it’s working on Page and Post titles).
    I have even deleted some RSS accounts, fetched feeds again, deleted cache…
    Hope this gets resolved as HTML entities in feed titles/source names really look ugly.

    I’m able to confirm this code snippet (above) is also not working when added to the theme functions file.

    And modifying the code found here as follows also does not work.

    add_filter( 'wprss_populate_post_data', 'my_strip_tags', 1000, 2 );
    function my_strip_tags( $args, $item ) {
      $args['post_title'] = strip_tags( $args['post_title'], '<b><i><p><span><img>' );
      return $args;
    }

    HTML Tags in titles defeats any purpose we have for aggregating content. It just looks a mess.

    The below filter function should work, and we’ve tested it as well:

    add_filter( 'the_content', 'my_unicode_content', 10);
    function my_unicode_content($content) {
          return html_entity_decode($content, 0, 'UTF-8');
    }

    Ensure you clear out your site’s performance caches to see this take effect.

    Another support reply on this issue that doesn’t work…spanning 6 months. This should be default functionality with this plugin…so disappointed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘HTML tag showing in title’ is closed to new replies.