mirror of
https://github.com/viq/NewsBlur.git
synced 2025-08-21 05:44:54 +00:00
32 lines
1.5 KiB
XML
32 lines
1.5 KiB
XML
![]() |
<fvdoc>
|
||
|
<div xmlns='http://www.w3.org/1999/xhtml'>
|
||
|
<div id='message'>
|
||
|
<p><code>foo</code> claims to be inline, but may contain HTML.</p>
|
||
|
</div>
|
||
|
<div id='explanation'>
|
||
|
<p>This element appears to contain escaped HTML, but it has declared itself as "xhtml".</p>
|
||
|
</div>
|
||
|
<div id='solution'>
|
||
|
<p>Unless you intend for the markup to show, unescape the content or use the <code>type</code> attribute to declare that this is HTML.</p>
|
||
|
|
||
|
<ul>
|
||
|
<li><strong>Example:</strong>: entity escaped content declared as xhtml:
|
||
|
<blockquote><p><code><content <b>type="xhtml"</b>><b><div xmlns="http://www.w3.org/1999/xhtml"></b>My &lt;b&gt;Bold&lt;/b&gt; Content<b></div></b></content></code></p></blockquote>
|
||
|
|
||
|
<p>To correct, remove the <code>xhml:div</code> and change the
|
||
|
<code>type</code> attribute to <code>html</code>, thus:</p>
|
||
|
|
||
|
<blockquote><p><code><content <strong>type="html"</strong>>My &lt;b&gt;Bold&lt;/b&gt; Title</content></code></p></blockquote>
|
||
|
</li>
|
||
|
<li><strong>Example:</strong>: CDATA escaped content declared as xhtml:
|
||
|
<blockquote><p><code><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><b><![CDATA[</b>My <b>Bold</b> Content<b>]]></b></div></content></code></p></blockquote>
|
||
|
|
||
|
<p>To correct, remove the <code>CDATA</code>, thus:</p>
|
||
|
|
||
|
<blockquote><p><code><content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">My <b>Bold</b> Content</div></content></code></p></blockquote>
|
||
|
</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</fvdoc>
|