Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separated <script> tags in JS strings throw a parsing error #462

brettp opened this Issue Mar 27, 2019 · 0 comments


None yet
1 participant
Copy link

commented Mar 27, 2019

PHP Fatal error: Uncaught Spipu\Html2Pdf\Exception\HtmlParsingException: The HTML tag [</scr' + 'ipt>] provided is invalid in /vendor/spipu/html2pdf/src/Parsing/TagParser.php:44

This can be duplicated with the following:

$string = '<h1>test</h1><script>let test = "<scr>" + "<ipt>alert(\"bob\");</scr" + "ipt>";</script><h2>end test</2h>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.