minify icon indicating copy to clipboard operation
minify copied to clipboard

html, script space minify

Open gyuber opened this issue 1 year ago • 2 comments

I using mixed html, script text

<span>15      min</span>
<script>var v = "15      min"</script>

but html space working, script space not working can you check if this is right?

let me share my test code https://go.dev/play/p/OC3alMni7uR

gyuber avatar Apr 30 '24 08:04 gyuber

Hi Hansung, yes this is correct. You specify a string literal with content 15 min, we can't remove the spaces like we do with HTML. Only in HTML are multiple spaces the equivalent as a single space. In JS strings this is not the case...

tdewolff avatar May 02 '24 14:05 tdewolff

ok! i will find other way...

gyuber avatar May 07 '24 05:05 gyuber