I’m having trouble getting a non-breaking space into HTML via ClojureScript.
If I use “ ” the string is simply printed literally.
I’m using the Crate library.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Got it after reading:
https://github.com/ibdknox/crate/issues/12
Basically, the issue seems to be that Crate inserts directly into the DOM thus skipping entity expansion (please someone correct me if I’ve misunderstood).
One solution is to use the following string which represents the UTF for
 :\u00A0.