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

Broken script template tags #82

Open
ozupey opened this issue Jul 23, 2022 · 2 comments
Open

Broken script template tags #82

ozupey opened this issue Jul 23, 2022 · 2 comments

Comments

@ozupey
Copy link

ozupey commented Jul 23, 2022

What is this feature about (expected vs actual behaviour)?

The script below produces this:

____simple_html_dom__voku__html_special_script____ id="foo" type="text/html"> <tr><td colspan=5>  <script id="bar" type="text/html"> foo

How can I reproduce it?

$html = '<script id="foo" type="text/html">
	<tr>
		<td colspan="5">

		</td>
	</tr>
</script>

<script id="bar" type="text/html">
	foo
</script>';

$htmlMin = new \voku\helper\HtmlMin();
echo $htmlMin->minify($html); 

Does it take minutes, hours or days to fix?

Hopefully minutes.

@voku
Copy link
Owner

voku commented Jul 23, 2022

Can you try this, but for your type: #77 (comment)

@ozupey
Copy link
Author

ozupey commented Jul 23, 2022

No joy, this gives the same output:

$htmlMin = new \voku\helper\HtmlMin();
$htmlMin->overwriteSpecialScriptTags(['text/html']);
echo $htmlMin->minify($html);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants