diff options
| author | Daniel Veillard <veillard@src.gnome.org> | 2001-06-05 20:57:42 +0000 |
|---|---|---|
| committer | Daniel Veillard <veillard@src.gnome.org> | 2001-06-05 20:57:42 +0000 |
| commit | 6e93c4aa47c11b86642c504301a3ff24ee191172 (patch) | |
| tree | dd4ec262e6a11ce33f5eb91e1fd9c15059a6bf25 /HTMLtree.c | |
| parent | 1c43dbf065d87d89d0e2567e2e5a2f0330f5a08d (diff) | |
| download | android_external_libxml2-6e93c4aa47c11b86642c504301a3ff24ee191172.tar.gz android_external_libxml2-6e93c4aa47c11b86642c504301a3ff24ee191172.tar.bz2 android_external_libxml2-6e93c4aa47c11b86642c504301a3ff24ee191172.zip | |
- HTMLtree.c: trying to close bug #55772 escaping in script
elements
- doc/xml.html: suggest to send mail to the list
Daniel
Diffstat (limited to 'HTMLtree.c')
| -rw-r--r-- | HTMLtree.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -473,8 +473,10 @@ htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) { } if (cur->type == HTML_TEXT_NODE) { if (cur->content != NULL) { - if ((cur->name == xmlStringText) || - (cur->name != xmlStringTextNoenc)) { + if (((cur->name == xmlStringText) || + (cur->name != xmlStringTextNoenc)) && + ((cur->parent == NULL) || + (!xmlStrEqual(cur->parent->name, BAD_CAST "script")))) { xmlChar *buffer; #ifndef XML_USE_BUFFER_CONTENT @@ -889,8 +891,10 @@ htmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc, } if (cur->type == HTML_TEXT_NODE) { if (cur->content != NULL) { - if ((cur->name == xmlStringText) || - (cur->name != xmlStringTextNoenc)) { + if (((cur->name == xmlStringText) || + (cur->name != xmlStringTextNoenc)) && + ((cur->parent == NULL) || + (!xmlStrEqual(cur->parent->name, BAD_CAST "script")))) { xmlChar *buffer; #ifndef XML_USE_BUFFER_CONTENT |
