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

30 lines
1.2 KiB
XML

<fvdoc>
<div xmlns='http://www.w3.org/1999/xhtml'>
<div id='message'>
<p><code>foo</code> should not contain HTML</p>
</div>
<div id='explanation'>
<p>This value appears to contain HTML markup. Be advised that clients
will behave unpredictably in the presence of such markup: some will
interpret it as HTML, others will strip it, and still others will
display the markup itself.</p>
</div>
<div id='solution'>
<p>Consider removing the markup.</p>
<p>If the purpose of the markup is to escape the use of an HTML entity, use
<a href="http://www.w3schools.com/tags/ref_entities.asp">this table</a>
to find the Entity Number to replace the escaped version of the Entity Name.
For example:</p>
<blockquote><code>&amp;amp;copy;</code></blockquote>
<p>becomes:</p>
<blockquote><code>&amp;#169;</code></blockquote>
<p>Encoding of the characters <code>"&amp;"</code> and <code>"&lt;"</code>
are especially problematic in places like RSS 2.0 titles.&#160; For the widest
interop, the
<a href="http://www.rssboard.org/rss-profile#data-types-characterdata">RSS Profile</a>
recommends the use of the hexadecimal character reference
"<code>&amp;#x26;</code>" to represent "<code>&amp;</code>" and
"<code>&amp;#x3C;</code>" to represent "<code>&lt;</code>".</p>
</div>
</div>
</fvdoc>