Replace \n between words

This commit is contained in:
Rajarshee Chatterjee
2021-05-28 20:39:28 +05:30
parent 5a986c7b73
commit 3298f45a23
14 changed files with 45 additions and 24 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
const cheerio = require("cheerio");
const fetch = require("node-fetch");
const { htmlToText } = require("html-to-text");
const { parseHtml } = require("../../helper");
const { scraper } = require("../../helper");
const baseUrl = "https://www.lightnovelpub.com/";
@@ -126,7 +127,7 @@ const chapterScraper = async (req, res) => {
const chapterName = $("h2").text();
let chapterText = $("#chapter-container").html();
chapterText = htmlToText(chapterText);
chapterText = parseHtml(chapterText);
let nextChapter = null;