803 B
803 B
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.