Woopread: Remove links
This commit is contained in:
@@ -139,8 +139,10 @@ const chapterScraper = async (req, res) => {
|
||||
|
||||
const chapterName = $("h1#chapter-heading").text();
|
||||
let chapterText = $(".reading-content").html();
|
||||
chapterText = parseHtml(chapterText);
|
||||
chapterText = chapterText.replace(/(?<=[[])[\n](?=[h])/g, "");
|
||||
chapterText = parseHtml(chapterText).replace(
|
||||
/\[(https:\/\/docs.google.com\/)(.*?)\]/g,
|
||||
""
|
||||
);
|
||||
|
||||
let nextChapter = null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user