NewsBlur/vendor/feedvalidator/demo/docs-xml/warning/ContainsUndeclaredHTML.xml

19 lines
774 B
XML

<fvdoc>
<div xmlns='http://www.w3.org/1999/xhtml'>
<div id='message'>
<p><code>foo</code> should not contain HTML unless declared in the type attribute</p>
</div>
<div id='explanation'>
<p>This element contains escaped HTML, but it has declared itself as "text".</p>
</div>
<div id='solution'>
<p>Use the <code>type</code> attribute to declare that this is HTML. For example, this is an invalid title in an Atom feed:</p>
<blockquote><p><code>&lt;title&gt;My &amp;lt;b&amp;gt;Bold&amp;lt;/b&amp;gt; Title&lt;/title&gt;</code></p></blockquote>
<p>To make it valid, add the following attribute:</p>
<blockquote><p><code>&lt;title <strong>type="html"</strong>&gt;My &amp;lt;b&amp;gt;Bold&amp;lt;/b&amp;gt; Title&lt;/title&gt;</code></p></blockquote>
</div>
</div>
</fvdoc>