Commit dfb35930 authored by jcnventura's avatar jcnventura

Fix #371388 by victorkane and gurubert: delete tbody tags since dompdf can't handle them

parent 047e5681
......@@ -128,6 +128,9 @@ function _print_pdf_dompdf($print, $html, $filename) {
$no_tags = array_diff($all_entities, $special_entities);
$html = strtr(utf8_decode($html), $no_tags);
//must get rid of tbody (dompdf goes into recursion)
$html = preg_replace('!<tbody>|</tbody>!', '', $html);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment