<!-- Source: https://docs.squirro.com/en/latest/api/squirro.lib.nlp.steps.normalizers.HTMLNormalizer.html -->
# HTMLNormalizer

**`class HTMLNormalizer(config)`**

Bases: [`Normalizer`](squirro.lib.nlp.steps.normalizers.Normalizer.md#squirro.lib.nlp.steps.normalizers.Normalizer)

The HTML [`Normalizer`](squirro.lib.nlp.steps.normalizers.Normalizer.md#squirro.lib.nlp.steps.normalizers.Normalizer) removes HTML markup

**Input** - all input fields need to be of type [`str`](https://docs.python.org/3.11/library/stdtypes.html#str).

**Output** - all output fields are filled with data of type [`str`](https://docs.python.org/3.11/library/stdtypes.html#str).

Parameters

- `type` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)) – html
- `encoding` ([`str`](https://docs.python.org/3.11/library/stdtypes.html#str)`, ``'utf-8'`) – 

  Content encoding

  Deprecated since version 3.2.7.
- `remove_tags` ([`list`](https://docs.python.org/3.11/library/stdtypes.html#list)`, ``[``]`) – remove the html tags provided in the list

**Example**

```json
{
    "step": "normalizer",
    "type": "html",
    "input_fields": ["body"],
    "output_fields": ["normalized_body"]
}
```

Methods SummaryMethods Documentation

**`process_doc(doc)`**

Process a document

Parameters

`doc` ([`Document`](../technical/libnlp/base.md#squirro.lib.nlp.document.Document)) – Document

Returns

Processed document

Return type

[Document](../technical/libnlp/base.md#squirro.lib.nlp.document.Document)
