WordPress.org

Ready to get started?Download WordPress

Forums

Feed Validator Error (4 posts)

  1. curtisfisher
    Member
    Posted 1 year ago #

    Hi,

    I get this error on the feed validator:

    is feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

    line 47, column 0: content:encoded should not contain iframe tag (3 occurrences)

    Here is the code that is highlighted:

    <content:encoded><![CDATA[<p><iframe width="520" height="390" src="http://www.youtube.com/embed/_gsRHEHAY6Y?feature=oembed" frameborder="0" allowfullscreen></iframe></p>

    Can someone please help to correct?

    Thanks,

    Curtis

  2. Rajesh Soni
    Member
    Posted 1 year ago #

    Have you tried disabling all plugins?

  3. curtisfisher
    Member
    Posted 1 year ago #

    Hi

    Thanks for the response. I didn't have any plugins installed prior to today. I've had the error for some time now.

    Curtis

  4. birgire
    Member
    Posted 1 year ago #

    In my case this is a recommendation and not a validation error on feedvalidator.org:

    In addition, interoperability with the widest range of feed readers could be improved by implementing the following recommendation.
    
    line 42, column 0: content:encoded should not contain iframe tag [help]
    
    <p><iframe width="500" height="281" src="http://www.youtube.com/embed/Gk5OJB ...

    This comes when using the built in oembed in WordPress.

    If you want to remove the iframe from your feed, you could try this:

    function custom_strip_rss($content){
    	if(is_feed()){
    		global $allowedposttags;
    		$content = wp_kses( $content, $allowedposttags );
    	}
    	return $content;
    }
    add_filter('the_content', 'custom_strip_rss');

    where $allowedposttags doesn't contain iframe on my 3.5.2 alpha install.

Topic Closed

This topic has been closed to new replies.

About this Topic