mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-02-18 05:57:23 +03:00
575875 don't output charset=html
* HTMLtree.c: don't output charset=html in htmlSetMetaEncoding() as this is clearly a libxml2 only thingused for import only
This commit is contained in:
parent
bd56c44349
commit
74eb54b5b7
@ -168,6 +168,10 @@ htmlSetMetaEncoding(htmlDocPtr doc, const xmlChar *encoding) {
|
||||
if (doc == NULL)
|
||||
return(-1);
|
||||
|
||||
/* html isn't a real encoding it's just libxml2 way to get entities */
|
||||
if (!xmlStrcasecmp(encoding, BAD_CAST "html"))
|
||||
return(-1);
|
||||
|
||||
if (encoding != NULL) {
|
||||
snprintf(newcontent, sizeof(newcontent), "text/html; charset=%s",
|
||||
(char *)encoding);
|
||||
|
Loading…
x
Reference in New Issue
Block a user