Skip to content

Remove repeated text while parsing html #165

Description

@sauravpanda

Currently, in some HTML files, texts are repeated as mobile and nonmobile content is repeated. We should remove this to reduce noise.

Activity

  1. self-assigned this
    on Mar 10, 2025
  2. sauravpanda commented on Apr 15, 2026

    @sauravpanda
    OwnerAuthor

    Fixed in #302. Added removeHiddenAndDuplicateElements() to HTMLCleaner — removes aria-hidden=true, inline display:none/visibility:hidden, and responsive CSS class heuristics (mobile-only, desktop-hidden, etc.) before text extraction. Called in clean(), cleanSemantic(), and preserveSemanticHierarchy().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions