Class: CommentsFilter

CommentsFilter(chunker, polisher, caller)

Handler that filters out HTML comment nodes from the content.

Constructor

new CommentsFilter(chunker, polisher, caller)

Create a CommentsFilter instance.

Create a CommentsFilter instance.

Parameters:
Name Type Description
chunker Object

The chunker responsible for managing document chunks.

polisher Object

The polisher responsible for post-processing or styling.

caller Object

The main object calling the handler (likely the flow controller).

Source:

Extends

  • Handler

Methods

filter(content)

Removes comment nodes from the provided content.

Removes comment nodes from the provided content.

Parameters:
Name Type Description
content DocumentFragment | HTMLElement

The DOM content to be filtered.

Source: