From bc1f108f029afeead2e25537fb4271520f2901e6 Mon Sep 17 00:00:00 2001 From: Eyre_S Date: Thu, 26 Jan 2023 14:54:14 +0800 Subject: [PATCH] add support for CDATA in --- constant.php | 2 +- src/Element/Bookshelf.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/constant.php b/constant.php index 69b7d32..f0b0340 100644 --- a/constant.php +++ b/constant.php @@ -2,6 +2,6 @@ const APP_NAME = "ph-Bookshelf"; -const VERSION = "0.3.3"; +const VERSION = "0.3.3.1"; const CHANNEL = "suk-ws"; const BRANCH = "master"; diff --git a/src/Element/Bookshelf.php b/src/Element/Bookshelf.php index 4ce01e3..c02a232 100644 --- a/src/Element/Bookshelf.php +++ b/src/Element/Bookshelf.php @@ -80,6 +80,7 @@ class Bookshelf { for ($rcc = $rc->firstChild; $rcc != null; $rcc = $rcc->nextSibling) { switch ($rcc->nodeName) { case "#text": + case "#cdata-section": $value .= trim($rcc->nodeValue); break; case "#comment":