soundasleep / html2text

A PHP component to convert HTML into a plain text format
MIT License
475 stars 135 forks source link

Leaves ampersand in href #85

Closed zmip closed 2 years ago

zmip commented 3 years ago

The remaining href of a link, when it contains ampersands that are correctly encoded as & will be in the plaintext. That should not happen.

5 minutes later: okay, it leaves all encoded entities in the remaining string. Is that expected?

2 minutes later: will have to look at my code a bit better, I see I'm injecting from different sources. May be not be an issue afterall...