You need to enable JavaScript to run this app.
Lake AI Service

Lake AI Service

Copy page
Download PDF
Text cleaning
HTML tag removal
Copy page
Download PDF
HTML tag removal

Operator introduction

Description

HTML document purification processor – multi-structure parsing and intelligent cleaning solution

Key features

  • Multi-structure parsing
  • Title extraction: Automatically identifies <h1>-<h6> tags
  • Main content extraction: Intelligently identifies the main body of the article
  • Redundancy filtering: Removes non-text tags such as <script>/<style>
  • Intelligent processing
  • Fault tolerance mechanism: Supports parsing of incomplete HTML fragments
  • Format retention: Maintains text paragraph structure and line break logic

Technical implementation

  • Base library: BeautifulSoup4 (html.parser)

Daft invocation

Operator parameters

Input

Input column name

Note

texts

Array of text containing HTML content, with each element as a string

Output

Array of cleaned text, with each element as a string

Parameters

If a parameter does not have a default value, it is required

Parameter name

Type

Default value

Description

separator

str


strip

bool

True

Examples

The following code demonstrates how to use daft to run the operator for HTML tag removal.

Last updated: 2026.05.12 19:06:38