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

html: Whitespace isn't collapsed when text includes "&" #743

Closed
thatguystone opened this issue Sep 10, 2024 · 1 comment
Closed

html: Whitespace isn't collapsed when text includes "&" #743

thatguystone opened this issue Sep 10, 2024 · 1 comment

Comments

@thatguystone
Copy link

The following HTML is valid (according to the W3C validator), but it's not being minified properly:

<!doctype html>
<html lang="en">
<head><title>Lorem ipsum</title></head>
<h5>
	Lorem & ipsum, 
	elit.
</h5>

Got

<!doctype html><html lang=en><title>Lorem ipsum</title><h5>Lorem & ipsum, 
	elit.
</h5>

Expected:

<!doctype html><html lang=en><title>Lorem ipsum</title><h5>Lorem & ipsum, elit.</h5>

Playground link

@tdewolff
Copy link
Owner

Thanks, this has now been fixed.

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