Add <meta> sniffing warning

Signed-off-by: yangbo <yangbo1@xfusion.com>
This commit is contained in:
yangbo 2023-01-18 11:12:45 +08:00
parent db76909cc0
commit 541bcc3633
2 changed files with 35 additions and 1 deletions

View File

@ -0,0 +1,28 @@
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-&gt;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
+ &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt; (and not newer &lt;meta charset="utf-8"&gt;),
+ else all non-ASCII will become entities.</para>
</listitem>
</varlistentry>
--
2.39.0.windows.2

View File

@ -1,6 +1,6 @@
Name: perl-XML-LibXML
Version: 2.0207
Release: 2
Release: 3
Epoch: 1
Summary: Perl Binding for libxml2
License: (GPL+ or Artistic) and MIT
@ -24,6 +24,9 @@ Requires(preun): perl-interpreter
Provides: perl-XML-LibXML-Common = %{version}
Obsoletes: perl-XML-LibXML-Common <= 0.13
Patch0001: backport-0001-Add-meta-sniffing-warning.patch
%description
This module is Perl Binding for libxml2, which implements a Perl interface to
the GNOME libxml2 library. This module provides interfaces for parsing and
@ -77,6 +80,9 @@ fi
%{_mandir}/man*/*
%changelog
* Wed Jan 18 2023 yangbo <yangbo1@xfusion.com> - 1:2.0207-3
- Add <meta> sniffing warning
* Tue Oct 25 2022 jiangchuangang <jiangchuangang@huawei.com> - 1:2.0207-2
- use macros package_help