JavaScript tags in HTML document throws a parsing error
PHP Fatal error: Uncaught Spipu\Html2Pdf\Exception\HtmlParsingException: The HTML tag provided is invalid in /vendor/spipu/html2pdf/src/Parsing/TagParser.php:44
Fixes: For HTML2PDF < 5.x (html2pdf.class.php)
/** * tag : script * mode : OPEN * * @param array $param * @return boolean */ protected function _tag_open_Script($param) { return $this->_tag_open_B($param, 'script'); } /** * tag : script * mode : CLOSE * * @param array $param * @return boolean */ protected function _tag_close_script($param) { return $this->_tag_close_B($param); }