mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-08-05 16:58:59 +00:00
30 lines
1.1 KiB
XML
30 lines
1.1 KiB
XML
<fvdoc>
|
|
<div xmlns='http://www.w3.org/1999/xhtml'>
|
|
<div id='message'>
|
|
<p>Invalid HTML: <code>explanation</code></p>
|
|
</div>
|
|
<div id='explanation'>
|
|
<p>Common causes for this condition:</p>
|
|
<ul>
|
|
<li>Placing plain text in an element intended to be rendered as HTML.
|
|
Example: representing a less than sign ("<") as escaped HTML
|
|
requires the following code: <code>&amp;lt;</code></li>
|
|
<li>Use of non-HTML tags.</li>
|
|
<li>Arbitrary truncation of HTML, possibly in the middle of a tag.</li>
|
|
<li>Unmatched quotes in attribute values, or missing whitespace between
|
|
attributes</li>
|
|
<li>For Atom feeds: declaring the
|
|
<code>type</code> as <code>xhtml</code>, but not changing
|
|
the default namespace from atom's to xhtml's.</li>
|
|
</ul>
|
|
</div>
|
|
<div id='solution'>
|
|
<p>For elements intended to be rendered as HTML, like RSS
|
|
<code>description</code>, make sure that all plain text content is escaped
|
|
first as HTML and then again as XML.</p>
|
|
<p>For Atom text constructs, you can use the <code>type</code> attribute
|
|
to declare your intented usage: plain <code>text</code>,
|
|
escaped <code>html</code> or in-line <code>xhtml</code>.</p>
|
|
</div>
|
|
</div>
|
|
</fvdoc>
|