Instead of using the
HTML entity, you can use the Unicode character which
refers to (U+00A0 NON-BREAKING SPACE):
<div>{myValue.replace(/ /g, "\u00A0")}</div>
Instead of using the
HTML entity, you can use the Unicode character which
refers to (U+00A0 NON-BREAKING SPACE):
<div>{myValue.replace(/ /g, "\u00A0")}</div>