From: miker Date: Wed, 3 Aug 2005 03:34:18 +0000 (+0000) Subject: either my escaper is to naive, or something is wonky with buffer_add_char X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=eecfd45c44f24163d7dbcd85d4c9aa40b21e1c3b;p=opensrf%2Fbjwebb.git 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 --- 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)