Open brianhogg opened 5 months ago
From this post, the alternative is to use utf8_decode https://stackoverflow.com/questions/11974008/alternative-to-mb-convert-encoding-with-html-entities-charset. However utf8_decode
is also depreciated, and the alternative suggested is to use mb_convert_encoding()...
This should work:
htmlspecialchars_decode( htmlentities( $this->source, ENT_COMPAT, 'UTF-8'), ENT_COMPAT);
htmlspecialchars_decode( htmlentities( $this->source ) )
(or with flags in the comment above) doesn't work for all the cases in test_llms_get_dom_document()
. Not sure what a reliable alternative is.
Created a custom one that does pass all the tests around the encoding, but some other PHPUnit tests are failing. Switched PR to draft.
Reproduction Steps
llms-video-wrapper
)Expected Behavior
No warnings/errors shown
Actual Behavior
This issue has be recreated: