From eecfd45c44f24163d7dbcd85d4c9aa40b21e1c3b Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 3 Aug 2005 03:34:18 +0000 Subject: [PATCH] either my escaper is to naive, or something is wonky with buffer_add_char git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@454 9efc2488-bf62-4759-914b-345cdb29e865 --- src/gateway/fieldmapper-c-xml-out.pl | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/gateway/fieldmapper-c-xml-out.pl b/src/gateway/fieldmapper-c-xml-out.pl index dcf880f..6724ff5 100755 --- a/src/gateway/fieldmapper-c-xml-out.pl +++ b/src/gateway/fieldmapper-c-xml-out.pl @@ -136,10 +136,13 @@ void _rest_xml_output(growing_buffer* buf, object* obj, char * fm_class, int fm_ buffer_fadd(buf, "<%s>false",tag,tag); } else if (obj->is_string) { - if (notag) - buffer_add(buf,_escape_xml(obj->string_data)); - else - buffer_fadd(buf,"<%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",tag,_escape_xml(obj->string_data),tag); + buffer_fadd(buf,"<%s>%s",tag,obj->string_data,tag); + } } else if(obj->is_number) { if (notag) -- 2.11.0