thephpleague / html-to-markdown

Convert HTML to Markdown with PHP
MIT License
1.77k stars 204 forks source link

stripping tags does not work #250

Closed DenuxPlays closed 6 months ago

DenuxPlays commented 6 months ago

Version(s) affected

5.1.1

Description

When enalbing this:

$converter = new HtmlConverter(array('strip_tags' => true));

It simply does the same as:

$converter = new HtmlConverter();

How to reproduce

Convert a hml document like:

<div><span>Test</span></div>

and try to convert it to markdown. It will return this:

<div><span>Test</span></div>

Possible solution

No response

Additional context

No response

Did this project help you today? Did it make you happy in any way?

No response

DenuxPlays commented 6 months ago

nvm I am stupid