Index: wp-includes/atomlib.php
===================================================================
--- wp-includes/atomlib.php	(revision 6008)
+++ wp-includes/atomlib.php	(working copy)
@@ -203,7 +203,7 @@
                     if(count($c) == 3) {
                         array_push($newcontent, $c[2]);
                     } else {
-                        if($this->is_xhtml) {
+                        if($this->is_xhtml || $this->is_text) {
                             array_push($newcontent, $this->xml_escape($c));
                         } else {
                             array_push($newcontent, $c);
Index: wp-app.php
===================================================================
--- wp-app.php	(revision 6008)
+++ wp-app.php	(working copy)
@@ -828,8 +828,12 @@
 		xml_parser_free($parser);
 
 		if (!$code) {
-			$data = "<div xmlns='http://www.w3.org/1999/xhtml'>$data</div>";
-			return array('xhtml', $data);
+		        if (strpos($data, '<') === false) {
+			        return array('text', $data);
+                        } else {
+			        $data = "<div xmlns='http://www.w3.org/1999/xhtml'>$data</div>";
+			        return array('xhtml', $data);
+                        }
 		}
 
 		if (strpos($data, ']]>') == false) {
