[Mapbender-commits] r3267 - branches/2.5/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Dec 2 05:50:06 EST 2008


Author: christoph
Date: 2008-12-02 05:50:05 -0500 (Tue, 02 Dec 2008)
New Revision: 3267

Modified:
   branches/2.5/http/javascripts/wfs.js
Log:
http://trac.osgeo.org/mapbender/ticket/338

Modified: branches/2.5/http/javascripts/wfs.js
===================================================================
--- branches/2.5/http/javascripts/wfs.js	2008-12-01 15:25:26 UTC (rev 3266)
+++ branches/2.5/http/javascripts/wfs.js	2008-12-02 10:50:05 UTC (rev 3267)
@@ -392,7 +392,7 @@
 		for(var i=0; i<d.get(m).e.count(); i++){
 			if(d.get(m).e.getValue(i) != "" && d.get(m).e.getName(i) != "fid"){
 				var tmp = d.get(m).e.getName(i);
-				str += '<' + tmp  + '>' + d.get(m).e.getValue(i) + '</' + tmp  + '>';
+				str += '<' + tmp  + '><![CDATA[' + d.get(m).e.getValue(i) + ']]></' + tmp  + '>';
 			}
 		}
 		for(var j=0; j<myconf['element'].length; j++){
@@ -439,7 +439,7 @@
 			if(d.get(m).e.getValue(i) != "" && d.get(m).e.getName(i) != "fid"){
 				str += '<wfs:Property>';
 				str += '<wfs:Name>'+d.get(m).e.getName(i)+'</wfs:Name>';
-				str += '<wfs:Value>'+d.get(m).e.getValue(i)+'</wfs:Value>';
+				str += '<wfs:Value><![CDATA['+d.get(m).e.getValue(i)+']]></wfs:Value>';
 				str += '</wfs:Property>';
 			}
 		}



More information about the Mapbender_commits mailing list