/
ContainsHTML.html
executable file
·87 lines (80 loc) · 3.56 KB
/
ContainsHTML.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>foo should not contain HTML</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="icon" href="http://www.feedvalidator.org/favicon.ico" />
<link rel="shortcut icon" href="http://www.feedvalidator.org/favicon.ico" />
<style type="text/css" media="screen">@import "../../css/common.css";
@import "../../css/documentation.css";</style>
<script type="text/javascript"><!-- --></script>
<link rel="start" href="http://feedvalidator.org/docs/" title="Home" />
</head>
<body>
<div id="logo">
<h1><a href="../../"><span id="feed"><span id="f">F</span><span id="e1">E</span><span id="e2">E</span></span><span id="d">D</span> Validator</a></h1>
<p>Documentation</p>
<a class="skip" href="#startnavigation">Jump to navigation</a>
</div> <!--logo-->
<div id="main">
<h2>Message</h2>
<div class="docbody">
<p><code>foo</code> should not contain HTML</p>
</div>
<h2>Explanation</h2>
<div class="docbody">
<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>
<h2>Solution</h2>
<div class="docbody">
<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;copy;</code></blockquote>
<p>becomes:</p>
<blockquote><code>&#169;</code></blockquote>
<p>Encoding of the characters <code>"&"</code> and <code>"<"</code>
are especially problematic in places like RSS 2.0 titles.  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>&#x26;</code>" to represent "<code>&</code>" and
"<code>&#x3C;</code>" to represent "<code><</code>".</p>
</div>
<h2>Not clear? Disagree?</h2>
<div class="docbody">
<p>Let us know on the <a href="http://lists.sourceforge.net/lists/listinfo/feedvalidator-users">feedvalidator-users</a> discussion list!</p>
</div>
</div><!--main-->
<div class="centered">
<a name="startnavigation" id="startnavigation"></a>
<div class="navbarWrapper">
<div class="navbarContent">
<img class="borderTL" src="../../images/borderTL.gif" alt="" width="14" height="14" />
<img class="borderTR" src="../../images/borderTR.gif" alt="" width="14" height="14" />
<p>
<a href="../../">Home</a> ·
<a href="../../about.html">About</a> ·
<a href="../../news/">News</a> ·
<a href="../../docs/">Docs</a> ·
<a href="../../terms.html">Terms</a>
</p>
<div class="roundedCornerSpacer"> </div>
</div><!-- .content -->
<div class="bottomCorners">
<img class="borderBL" src="../../images/borderBL.gif" alt="" width="14" height="14" />
<img class="borderBR" src="../../images/borderBR.gif" alt="" width="14" height="14" />
</div><!-- .bottomCorners -->
</div><!-- .contentWrapper -->
</div><!-- .centered -->
<div class="centered">
<address>Copyright © 2002-4 <a href="http://diveintomark.org/">Mark Pilgrim</a> and <a href="http://www.intertwingly.net/blog/">Sam Ruby</a></address>
</div>
</body>
</html>