Skip to content

[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.


Last update: 2021-01-25