TLDR Web Dev · OPINIONS & ADVICE
HTML WHITESPACE IS BROKEN
Summary from the TLDR Web Dev newsletter
There are numerous issues with whitespace handling in HTML, from unexpected rendering inconsistencies to formatting problems. A possible solution is quoting strings in HTML to clearly differentiate between significant and insignificant whitespace. A more pragmatic solution would be adding a new HTML entity (&ncsp;) to represent a non-collapsible space.