chore: cleanup

This commit is contained in:
amhsirak
2025-11-20 15:37:26 +05:30
parent 28d2288f6e
commit 8346c9637a

View File

@@ -98,14 +98,10 @@ function cleanUrl(u: string): string {
}
}
// CODE 1: attribute cleaner
function cleanAttribute(attr: string) {
return attr ? attr.replace(/(\n+\s*)+/g, "\n") : "";
}
// ---------------------------------------------------------
// CODE 1: Full tidyHtml cleaning logic (ported verbatim)
// ---------------------------------------------------------
function tidyHtml(html: string): string {
const cheerio = require("cheerio");
const $ = cheerio.load(html);