Open Pijushgupta opened 1 week ago
Looks like broken html in the original html, can you fix it, or do you need to use the broken html?
Looks like broken html in the original html, can you fix it, or do you need to use the broken html?
That is the snippet. Updated the comment to give more context. problem is valid </div>
getting replaced with <\/div>
. Specific to woocommerce product variant description. Rest of the things are okay. Meaning its getting treated as text instead of html.
The html is still broken: missing end-div after . woocommerce-variation-availability
Sorry for incomplete snippet(updated again) and thanks @voku for the library. May be the issue from our end or from woocommerce generating abnormal HTML hierarchy .
Php: 7.4.3 tested upto 8.3.8 simple_html_dom : 4.8.7
Before simple_html_dom
After simple_html_dom