29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
From 8465180e379bb0873c248afc937bae9aa03e0a60 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?=E7=A9=8D=E4=B8=B9=E5=B0=BC=20Dan=20Jacobson?=
|
|
<jidanni@jidanni.org>
|
|
Date: Mon, 21 Jun 2021 22:45:47 +0800
|
|
Subject: [PATCH 01/11] Add <meta> sniffing warning
|
|
|
|
---
|
|
docs/libxml.dbk | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/docs/libxml.dbk b/docs/libxml.dbk
|
|
index c7a4208..b307510 100644
|
|
--- a/docs/libxml.dbk
|
|
+++ b/docs/libxml.dbk
|
|
@@ -2598,7 +2598,9 @@ print {$out_fh} $doc->toString;</programlisting>
|
|
</funcsynopsis>
|
|
|
|
<para><emphasis>toStringHTML</emphasis> serialize the tree to a byte string in the document encoding as HTML. With this method indenting is automatic and managed by
|
|
- libxml2 internally.</para>
|
|
+ libxml2 internally. Note the string must contain
|
|
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> (and not newer <meta charset="utf-8">),
|
|
+ else all non-ASCII will become entities.</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
|
|
--
|
|
2.39.0.windows.2
|
|
|