mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
entities: Allow control chars when serializing HTML
This commit is contained in:
parent
b52a3044aa
commit
89b9f45711
@ -685,7 +685,7 @@ xmlEscapeText(const xmlChar *text, int flags) {
|
||||
|
||||
replSize = xmlSerializeHexCharRef(buf, val);
|
||||
repl = BAD_CAST buf;
|
||||
} else if ((flags & XML_ESCAPE_ALLOW_INVALID) ||
|
||||
} else if ((flags & (XML_ESCAPE_ALLOW_INVALID | XML_ESCAPE_HTML)) ||
|
||||
(c >= 0x20) ||
|
||||
(c == '\n') || (c == '\t') || (c == '\r')) {
|
||||
/* default case, just copy */
|
||||
|
Loading…
x
Reference in New Issue
Block a user