Trying to include a specific number of spaces within a list string, such as:
<li>Going (25 -going.length spaces added) to New York</li>
<li>Departing (25 - departing.length spaces added) to Boston</li>
These lines of HTML are generated in JavaScript and then presented with jQuery.
However, upon final rendering, the white space disappears. Upon inspecting the list elements, it is clear that the white space exists within the HTML code but does not show up on display.
Any suggestions?
PS: I have just realized that when I included multiple spaces in the list items above in this post, the additional spaces were removed from this post!