From 751ba8d8404dd60a52c33898ea7ab51e6b0df4b0 Mon Sep 17 00:00:00 2001 From: dteviot Date: Tue, 17 Sep 2024 10:59:51 +1200 Subject: [PATCH] extractInformation() can use informationEpubItem() See: https://github.com/dteviot/WebToEpub/issues/1484 --- plugin/js/Parser.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/plugin/js/Parser.js b/plugin/js/Parser.js index f0104b10..2f8507b2 100644 --- a/plugin/js/Parser.js +++ b/plugin/js/Parser.js @@ -254,8 +254,14 @@ class Parser { extractSubject(dom) { // eslint-disable-line no-unused-vars return ""; } - extractDescription(dom) { // eslint-disable-line no-unused-vars - return ""; + + extractDescription(dom) { + let infoDiv = document.createElement("div"); + if (this.getInformationEpubItemChildNodes !== undefined) + { + this.populateInfoDiv(infoDiv, dom); + } + return infoDiv.textContent; } /**