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
@@ -2,6 +2,7 @@ const cheerio = require("cheerio");
const fetch = require("node-fetch");
const request = require("request");
const { htmlToText } = require("html-to-text");
const { parseHtml } = require("../../helper");
const baseUrl = "https://freewebnovel.com/";
@@ -133,7 +134,7 @@ const chapterScraper = async (req, res) => {
let chapterName = $("h1.tit").text();
let chapterText = $("div.txt").html();
chapterText = htmlToText(chapterText);
chapterText = parseHtml(chapterText);
let nextChapter = null;