aboutsummaryrefslogtreecommitdiffstats
path: root/HTMLtree.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-06-05 20:57:42 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-06-05 20:57:42 +0000
commit6e93c4aa47c11b86642c504301a3ff24ee191172 (patch)
treedd4ec262e6a11ce33f5eb91e1fd9c15059a6bf25 /HTMLtree.c
parent1c43dbf065d87d89d0e2567e2e5a2f0330f5a08d (diff)
downloadandroid_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.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/HTMLtree.c b/HTMLtree.c
index e61ce2b9..be9b2f94 100644
--- a/HTMLtree.c
+++ b/HTMLtree.c
@@ -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