I have some code that replaces all spaces in a string with and this worked great until I had a string with a '-' in it and the line is breaking at that when I don't want it to. Can I replace the '-' with something so that the line doesn't break at this hypen? What is the html code for a non breaking hyphen if it exists.
... or in CSS, the parent (encasing) element should have the white-space property set to "nowrap" syntax: white-space: nowrap;