• Resolved Seldovia

    (@sophietrujillo)


    I am having some trouble understanding what to do to fix the problem of unsafe HTML in my RSS feed. I am getting this message when checking my feeds validation:
    <

    line 39, column 0: content:encoded should not contain srcset attribute

    You can also see my feed here

    I am a novice with HTML coding and while I understand quickly, explaining in beginner terms would be appreciated. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The feed is simply reflecting the content of your site. Since WordPress 4.4 SRCSET has been used been used for the purpose of serving responsive images. However, as you’ve seen, RSS validators don’t like it. Whether this causes ANY issues, I don’t know, but I suspect not.

    The only solution right now is to turn off SRCSET on your site via a plugin such as this… https://wordpress.org/plugins/disable-responsive-images/

    It is worth stating, though, that this validation error is neither “dangerous” or “unsafe” so it’s probably not appropriate to be using these words to describe what is, after all, a minor concern.

    Thread Starter Seldovia

    (@sophietrujillo)

    Thank you for the feedback Dartiss and the explanation, I very much appreciate you taking the time.

    Since responsive images are something I want to keep and as you stated they shouldn’t cause any issue via RSS feed I will leave it be. I do have this as resource now should anything go wrong, thank you!

    The “dangerous” html aspect was a word used by w3 validator in describing the html I was using, when clicking their help button. I do agree it seems not appropriate when describing something minor as you explained.

    Ah, hadn’t noticed it in the help! Although that uses ‘unsafe’ rather than ‘dangerous’, I think it’s still a pretty strong word for them to be using, all things considered.

    But that’s an aside. Glad that’s answered your question.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘RSS Feed Dangerous HTML’ is closed to new replies.