cii-text-analysis/vendor/rubix/ml/docs/transformers/html-stripper.md
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

803 B

[source]

HTML Stripper

Removes any HTML or PHP tags from the text of a feature column.

!!! note Since the HTML is not actually validated during transformation, broken tags may result in unexpectedly removing non-HTML text.

Interfaces: Transformer

Data Type Compatibility: Categorical

Parameters

# Name Default Type Description
1 allowedTags array A list of html tags that should not be stripped ex. ['p', 'br'].

Example

use Rubix\ML\Transformers\HTMLStripper;

$transformer = new HTMLStripper();

Additional Methods

This transformer does not have any additional methods.