mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
trying to fix the <style> escaping problem in HTML serialization bug
* HTMLtree.c: trying to fix the <style> escaping problem in HTML serialization bug #89342 Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
Mon Jul 29 18:22:00 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* HTMLtree.c: trying to fix the <style> escaping problem in
|
||||
HTML serialization bug #89342
|
||||
|
||||
Thu Jul 25 01:33:47 CEST 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* doc/xml.html doc/*.html: applied syntax patch from Rick Jones
|
||||
|
@ -456,7 +456,8 @@ htmlNodeDumpFormat(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur,
|
||||
if (((cur->name == (const xmlChar *)xmlStringText) ||
|
||||
(cur->name != (const xmlChar *)xmlStringTextNoenc)) &&
|
||||
((cur->parent == NULL) ||
|
||||
(!xmlStrEqual(cur->parent->name, BAD_CAST "script")))) {
|
||||
((!xmlStrEqual(cur->parent->name, BAD_CAST "script")) &&
|
||||
(!xmlStrEqual(cur->parent->name, BAD_CAST "style"))))) {
|
||||
xmlChar *buffer;
|
||||
|
||||
buffer = xmlEncodeEntitiesReentrant(doc, cur->content);
|
||||
@ -945,7 +946,8 @@ htmlNodeDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
|
||||
if (((cur->name == (const xmlChar *)xmlStringText) ||
|
||||
(cur->name != (const xmlChar *)xmlStringTextNoenc)) &&
|
||||
((cur->parent == NULL) ||
|
||||
(!xmlStrEqual(cur->parent->name, BAD_CAST "script")))) {
|
||||
((!xmlStrEqual(cur->parent->name, BAD_CAST "script")) &&
|
||||
(!xmlStrEqual(cur->parent->name, BAD_CAST "style"))))) {
|
||||
xmlChar *buffer;
|
||||
|
||||
buffer = xmlEncodeEntitiesReentrant(doc, cur->content);
|
||||
|
Reference in New Issue
Block a user