You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like the problem is in the strip_tags function, that consider <250A ... is a html tag, so remove it.
Not sure how fix it, because removing strip_tags opens the door to other issues.
I see, but why is the HTML document unencoded before tags are stripped?
The contents of the <title> tag clearly says <250A, so this shouldn't be a problem in the first place...
Hi @JanPetterMG, PR #589 should fix this: a < followed by a number, a space or = no longer swallows the rest of the text.
You can test it with composer require embed/embed:dev-fix/4.5.5. We will leave the PR open for a few days before releasing 4.5.5, so any feedback is very welcome!
Activity
oscarotero commentedon Jul 8, 2020
Seems like the problem is in the strip_tags function, that consider
<250A ...is a html tag, so remove it.Not sure how fix it, because removing
strip_tagsopens the door to other issues.JanPetterMG commentedon Jul 10, 2020
I see, but why is the HTML document unencoded before tags are stripped?
The contents of the
<title>tag clearly says<250A, so this shouldn't be a problem in the first place...kzgzhn commentedon Nov 18, 2020
https://stackoverflow.com/questions/2752434/php-domnode-entities-and-nodevalue
https://github.com/oscarotero/Embed/blob/master/src/QueryResult.php#L48
Vitorinox commentedon Oct 31, 2026
Hi @JanPetterMG, PR #589 should fix this: a
<followed by a number, a space or=no longer swallows the rest of the text.You can test it with
composer require embed/embed:dev-fix/4.5.5. We will leave the PR open for a few days before releasing 4.5.5, so any feedback is very welcome!