Message

foo should not contain HTML unless declared in the type attribute

Explanation

This element contains escaped HTML, but it has declared itself as "text".

Solution

Use the type attribute to declare that this is HTML. For example, this is an invalid title in an Atom feed:

<title>My &lt;b&gt;Bold&lt;/b&gt; Title</title>

To make it valid, add the following attribute:

<title type="html">My &lt;b&gt;Bold&lt;/b&gt; Title</title>

Not clear? Disagree?

You might be able to find help in one of these fine resources.