Open amanpatel opened 3 years ago
We saw a similar one:
Undefined property: DOMAttr::$value at vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php
This will be an environment / PHP configuration issue. Ensure ext-dom / ext-xml is correctly loaded, no configuration warnings, and a modern version of libxml2 is used.
In some envrionments (e.g. Freescout laravel app), the following line causes the error
https://github.com/ezyang/htmlpurifier/blob/6f9aac9325e99a860928534cd4a5ade8962d3751/library/HTMLPurifier/Lexer/DOMLex.php#L267
Is there any workaround for this?
Checking if name exists as a property seems like a good solution...
The theoretical email/html that was parsed is:
Full laravel log stack: