either my escaper is to naive, or something is wonky with buffer_add_char
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 3 Aug 2005 03:34:18 +0000 (03:34 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Wed, 3 Aug 2005 03:34:18 +0000 (03:34 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@454 9efc2488-bf62-4759-914b-345cdb29e865

src/gateway/fieldmapper-c-xml-out.pl

index dcf880f..6724ff5 100755 (executable)
@@ -136,10 +136,13 @@ void _rest_xml_output(growing_buffer* buf, object* obj, char * fm_class, int fm_
                        buffer_fadd(buf, "<%s>false</%s>",tag,tag);
 
        } else if (obj->is_string) {
-               if (notag)
-                       buffer_add(buf,_escape_xml(obj->string_data));
-               else
-                       buffer_fadd(buf,"<%s>%s</%s>",tag,_escape_xml(obj->string_data),tag);
+               if (notag) {
+                       //buffer_add(buf,_escape_xml(obj->string_data));
+                       buffer_add(buf,obj->string_data);
+               } else {
+                       //buffer_fadd(buf,"<%s>%s</%s>",tag,_escape_xml(obj->string_data),tag);
+                       buffer_fadd(buf,"<%s>%s</%s>",tag,obj->string_data,tag);
+               }
 
        } else if(obj->is_number) {
                if (notag)