From da58707d7b27ef2d96edb9e0f11ea03d07605942 Mon Sep 17 00:00:00 2001 From: Andrew Zhong Date: Mon, 29 Sep 2025 14:12:12 -0700 Subject: [PATCH] init --- src/converters.ts | 3 ++- test-data | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/converters.ts b/src/converters.ts index da15de1..6d6195a 100644 --- a/src/converters.ts +++ b/src/converters.ts @@ -251,6 +251,7 @@ function tidyHtml(html: string, includeImages: boolean): string { // - footer (might contain company info) // - img, picture, figure (if includeImages is false) // - option, label, select (this can present product options and titles) + // - button (this can present product metadata, e.g. number of reviews) const manuallyCleanedElements = [ // important "aside", @@ -272,7 +273,7 @@ function tidyHtml(html: string, includeImages: boolean): string { // secondary "area", "blink", - "button", + // "button", "datalist", "dialog", "frame", diff --git a/test-data b/test-data index 0aac83c..69637d0 160000 --- a/test-data +++ b/test-data @@ -1 +1 @@ -Subproject commit 0aac83cf6aabdaabce12e88e1dd2bbc3263f8fa0 +Subproject commit 69637d072d5e2e0b19cd6be04d2edd5cd53ee14a