[Yanel-commits] rev 31246 - public/yanel/contributions/resources/gallery/src/java/org/wyona/yanel/impl/resources/gallery

michi at wyona.com michi at wyona.com
Tue Feb 5 14:24:57 CET 2008


Author: michi
Date: 2008-02-05 14:24:57 +0100 (Tue, 05 Feb 2008)
New Revision: 31246

Modified:
   public/yanel/contributions/resources/gallery/src/java/org/wyona/yanel/impl/resources/gallery/GalleryResource.java
Log:
title put into CDATA

Modified: public/yanel/contributions/resources/gallery/src/java/org/wyona/yanel/impl/resources/gallery/GalleryResource.java
===================================================================
--- public/yanel/contributions/resources/gallery/src/java/org/wyona/yanel/impl/resources/gallery/GalleryResource.java	2008-02-05 13:11:08 UTC (rev 31245)
+++ public/yanel/contributions/resources/gallery/src/java/org/wyona/yanel/impl/resources/gallery/GalleryResource.java	2008-02-05 13:24:57 UTC (rev 31246)
@@ -103,7 +103,7 @@
         feed.append("<feed xmlns=\"http://www.w3.org/2005/Atom\">"+"\n");
         
         feed.append("<id>"+gallery.getId()+"</id>"+"\n");
-        feed.append("<title>"+gallery.getTitle()+"</title>"+"\n");
+        feed.append("<title><![CDATA["+gallery.getTitle()+"]]></title>\n");
         feed.append("<updated>"+gallery.getUpdated()+"</updated>"+"\n");
         
         for (int i = 0; i < gallery.size(); i++) {
@@ -111,7 +111,7 @@
             
             GalleryItem entry = gallery.getItem(i);
             feed.append("<id>"+entry.getId()+"</id>"+"\n");
-            feed.append("<title>"+entry.getTitle()+"</title>"+"\n");
+            feed.append("<title><![CDATA["+entry.getTitle()+"]]></title>\n");
             feed.append("<updated>"+entry.getUpdated()+"</updated>"+"\n");
             
             if(entry.getContent().isLinkedContent()){



More information about the Yanel-commits mailing list