Hi Daniel,

We have had the issue that libxml2 encodes curly braces as character references 
in HTML output because of the following code in HTMLtree.c:

               escaped = xmlURIEscapeStr(tmp, BAD_CAST"@/:=?;#%&,+");
               if (escaped != NULL) {
                    xmlBufferWriteQuotedString(buf->buffer, escaped);
                    xmlFree(escaped);
                } else {
                    xmlBufferWriteQuotedString(buf->buffer, value);
                }

We don't think the curly braces, "{" and "}", should be changed to character 
references.  Doing so causes a problem with the use of braces in a Server 
Response File (SRF) generated with libxml2.  We change the first line of the 
above code to:

               escaped = xmlURIEscapeStr(tmp, BAD_CAST"@/:=?;#%&,+{}");

to eliminate this issue.  Could this be accepted as a fix to libxml2?


Bruce Sinclair
Software Systems Developer - Senior Principal

Micro Focus

bruce.sincl...@microfocus.com<mailto:bruce.sincl...@microfocus.com>
8310 N. Capital of Texas Hwy.
Building 1, Suite 155
Austin, Texas  78731-1002
Direct: +1 512 340 4717
Shoretel 27023


Please consider the environment before printing this e-mail.
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
https://mail.gnome.org/mailman/listinfo/xml

Reply via email to