From 405d5f0f768faf142b1dfa21c5e7a4c92ce5d1ef Mon Sep 17 00:00:00 2001
From: Bob Vincent <bobvin@pillars.net>
Date: Wed, 25 Jan 2012 14:25:18 -0500
Subject: [PATCH] Issue #61456 by Steve Dondley, edmund.kwok, csevb10, jdefay,
 alex_b, jeffschuler, David_Rothstein: Aggregator titles
 display quotes and other characters with HTML entity
 equivalents badly (write tests)

---
 core/modules/aggregator/aggregator.test            |    2 +-
 .../tests/aggregator_test_title_entities.xml       |   14 ++++++++++++++
 2 files changed, 15 insertions(+), 1 deletions(-)
 create mode 100644 core/modules/aggregator/tests/aggregator_test_title_entities.xml

diff --git a/core/modules/aggregator/aggregator.test b/core/modules/aggregator/aggregator.test
index ec73a7e956e760ed928a6a9d60a535c6f669f25b..27c46737eb27ad8d358004bf09552af36adfc0e0 100644
--- a/core/modules/aggregator/aggregator.test
+++ b/core/modules/aggregator/aggregator.test
@@ -928,6 +928,6 @@ class FeedParserTestCase extends AggregatorTestCase {
     aggregator_refresh($feed);
     $this->drupalGet('aggregator/sources/' . $feed->fid);
     $this->assertResponse(200, t('Feed %name exists.', array('%name' => $feed->title)));
-    $this->assertText("Quote&quot; Amp&amp;");
+    $this->assertRaw("Quote&quot; Amp&amp;");
   }
 }
diff --git a/core/modules/aggregator/tests/aggregator_test_title_entities.xml b/core/modules/aggregator/tests/aggregator_test_title_entities.xml
new file mode 100644
index 0000000000000000000000000000000000000000..e526e4418417cf380375465a6465075599d6193b
--- /dev/null
+++ b/core/modules/aggregator/tests/aggregator_test_title_entities.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<rss version="0.91">
+  <channel>
+    <title>Example with Entities</title>
+    <link>http://example.com</link>
+    <description>Example RSS Feed With HTML Entities in Title</description>
+    <language>en-us</language>
+    <item>
+      <title>Quote&quot; Amp&amp;</title>
+      <link>http://example.com/example-turns-one</link>
+      <description>Some text.</description>
+    </item>
+  </channel>
+</rss>
-- 
1.7.5.4

