"""StripHtmlNormalizer --- extracts text content from HTML."""

from __future__ import annotations

from .base import BaseNormalizer


class StripHtmlNormalizer(BaseNormalizer):
    """Strips HTML tags and extracts text content before scanning.

    Skips content inside <script> and <style> tags. Inserts spaces for
    block-level elements (p, div, br, li, etc.).
    """

    def to_normalizer_spec(self) -> dict:
        return {"type": "strip_html", "config": {}}
