async def test_html_entity_conversion(self):
        """Test conversion of HTML entities to their plain text equivalents."""
        test_cases = {
            "This &amp; that": "This & that",
            "1 &lt; 2": "1 < 2",
            "2 &gt; 1": "2 > 1",
            "Line&nbsp;break": "Line break",
            "Mixed &amp; &lt;entities&gt;": "Mixed & <entities>",
        }

        for input_text, expected in test_cases.items():
            result = await self.filter.filter(input_text)
            self.assertEqual(result, expected, f"HTML entity conversion failed for: '{input_text}'")
Test conversion of HTML entities to their plain text equivalents.
tests/test_markdown_text_filter.py